diff options
author | Patrick Spek <p.spek@tyil.nl> | 2024-04-02 09:34:25 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2024-04-02 09:34:25 +0200 |
commit | a5808c579e2f967ff1a421a730d8b0224e9bfb62 (patch) | |
tree | 7b4646c81a2e5f706dce7fa10771ba1979f3da98 | |
parent | 5ae54c278477e9d975410892d9f6b0995f9a2dcc (diff) |
Rectify incorrect logging labels for del subcommand
-rw-r--r-- | lib/subcommands/del.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/subcommands/del.bash b/lib/subcommands/del.bash index 3649e69..293e401 100644 --- a/lib/subcommands/del.bash +++ b/lib/subcommands/del.bash @@ -24,7 +24,7 @@ subcommand() # Make sure we only run add if the playbook is not in the registry yet if ! grep -Fqx "$BASHTARD_PLAYBOOK" "$playbook_registry" then - crit "bashtard/add" "'$BASHTARD_PLAYBOOK' is not registered for ${BASHTARD_PLATFORM[fqdn]}" + crit "bashtard/del" "'$BASHTARD_PLAYBOOK' is not registered for ${BASHTARD_PLATFORM[fqdn]}" return 3 fi @@ -32,13 +32,13 @@ subcommand() if [[ ! -d "$playbook_base" ]] then - emerg "bashtard/sync" "No such directory: $playbook_base" + emerg "bashtard/del" "No such directory: $playbook_base" return 1 fi if [[ ! -f "$playbook_base/playbook.bash" ]] then - emerg "bashtard/sync" "No such file: $playbook_base/playbook.bash" + emerg "bashtard/del" "No such file: $playbook_base/playbook.bash" return 1 fi |