From fba67928920f3b1e6d10123de9a7efae0dac177f Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Sun, 17 Apr 2022 22:56:59 +0200
Subject: Make shellcheck happy
---
lib/subcommands/del.bash | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'lib/subcommands/del.bash')
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"
--
cgit v1.1