aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands/del.bash
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-04-17 22:56:59 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-04-17 22:56:59 +0200
commitfba67928920f3b1e6d10123de9a7efae0dac177f (patch)
tree1b94866fde92c24c660f181fd1631f380595b349 /lib/subcommands/del.bash
parentfa150b95d3d9d9b3ea51a03e9243d2b4b2a6c761 (diff)
Make shellcheck happy
Diffstat (limited to 'lib/subcommands/del.bash')
-rw-r--r--lib/subcommands/del.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/subcommands/del.bash b/lib/subcommands/del.bash
index 9f01c3c..f5204d8 100644
--- a/lib/subcommands/del.bash
+++ b/lib/subcommands/del.bash
@@ -6,6 +6,8 @@
subcommand()
{
+ local buffer
+
export BASHTARD_PLAYBOOK="$1" ; shift
if [[ -z "$BASHTARD_PLAYBOOK" ]]
@@ -38,6 +40,7 @@ subcommand()
return 1
fi
+ # shellcheck disable=SC1090
. "$playbook_base/playbook.bash"
if ! playbook_del
@@ -46,7 +49,7 @@ subcommand()
return 1
fi
- local buffer="$(tmpfile)"
+ buffer="$(tmpfile)"
# Remove the playbook from the registry
cp -- "$playbook_registry" "$buffer"