From 1a75cbfe76b5c1b13d43a86e10595fdda2391a0f Mon Sep 17 00:00:00 2001 From: Charles Herlin Date: Fri, 25 Jan 2019 14:16:47 +0100 Subject: [PATCH] Fix typo in test skeleton and add shellcheck comment --- src/skel.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/skel.test b/src/skel.test index ebc885e..36f9ebd 100644 --- a/src/skel.test +++ b/src/skel.test @@ -1,9 +1,11 @@ +# run-shellcheck test_audit() { # Make all variable local to the function by using `local` # Optional part, only here if you need to change the audit script's default configuration describe Running void to generate the conf file that will later be edited - /opt/debian-cis/bin/hardening/"${script_id}".sh || true + # shellcheck disable=2154 + /opt/debian-cis/bin/hardening/"${script}".sh || true # for instance echo 'EXCEPTIONS="$EXCEPTIONS "' >> /opt/debian-cis/etc/conf.d/"${script}".cfg