aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands/add.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subcommands/add.bash')
-rw-r--r--lib/subcommands/add.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/subcommands/add.bash b/lib/subcommands/add.bash
index 590c8ec..c72582b 100644
--- a/lib/subcommands/add.bash
+++ b/lib/subcommands/add.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_add
@@ -46,7 +49,7 @@ subcommand()
return 1
fi
- local buffer="$(tmpfile)"
+ buffer="$(tmpfile)"
# Add the playbook to the registry
cp -- "$playbook_registry" "$buffer"