diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-10 10:49:16 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-10 10:49:16 +0100 |
commit | 37749ec5c115adff9ed10d9a829f9af5f29776f4 (patch) | |
tree | 0a78f64bbc6f34261f32585bf9de721af20b96bb /lib/subcommands/del.bash | |
parent | 28c55aa1a8c82def2ffdb3e000812a5523371ac5 (diff) |
Update new code for shellcheck compliancy
Diffstat (limited to 'lib/subcommands/del.bash')
-rw-r--r-- | lib/subcommands/del.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/subcommands/del.bash b/lib/subcommands/del.bash index 38d675c..ec2ec80 100644 --- a/lib/subcommands/del.bash +++ b/lib/subcommands/del.bash @@ -7,6 +7,8 @@ subcommand() { local buffer + local playbook_base + local playbook_registry export BASHTARD_PLAYBOOK="$1" ; shift @@ -16,8 +18,8 @@ subcommand() return fi - local playbook_base="$(playbook_path "base")" - local playbook_registry="$BASHTARD_ETCDIR/registry.d/${BASHTARD_PLATFORM[fqdn]}" + playbook_base="$(playbook_path "base")" + playbook_registry="$BASHTARD_ETCDIR/registry.d/${BASHTARD_PLATFORM[fqdn]}" # Make sure we only run add if the playbook is not in the registry yet if ! grep -Fqx "$BASHTARD_PLAYBOOK" "$playbook_registry" |