Skip to content

Commit 0204bb0

Browse files
committed
IMP(shellcheck): fix docker shellcheck with new options
1 parent 6e0b47a commit 0204bb0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

shellcheck/launch_shellcheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
for f in $files; do
1515
if head "$f" | grep -qE "^# run-shellcheck$"; then
1616
printf "\e[1;36mRunning shellcheck on: %s \e[0m\n" "$f"
17-
if ! /usr/bin/shellcheck --color=always --shell=bash -e SC1091 "$f"; then
17+
if ! /usr/bin/shellcheck --color=always --shell=bash -x --source-path=SCRIPTDIR "$f"; then
1818
retval=$((retval + 1))
1919
fi
2020
fi

tests/hardening/4.1.1.1_audit_log_storage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ test_audit() {
44
describe Running on blank host
55
register_test retvalshouldbe 0
66
dismiss_count_for_test
7-
# shellcheck disable=2154
87
mkdir -p /etc/audit
98
touch /etc/audit/auditd.conf
9+
# shellcheck disable=2154
1010
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
1111

1212
describe Correcting situation

tests/hardening/4.1.1.2_halt_when_audit_log_full.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ test_audit() {
44
describe Running on blank host
55
register_test retvalshouldbe 0
66
dismiss_count_for_test
7-
# shellcheck disable=2154
87
mkdir -p /etc/audit
98
touch /etc/audit/auditd.conf
9+
# shellcheck disable=2154
1010
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
1111

1212
describe Correcting situation

tests/hardening/4.1.1.3_keep_all_audit_logs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ test_audit() {
44
describe Running on blank host
55
register_test retvalshouldbe 0
66
dismiss_count_for_test
7-
# shellcheck disable=2154
87
mkdir -p /etc/audit
98
touch /etc/audit/auditd.conf
9+
# shellcheck disable=2154
1010
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
1111

1212
describe Correcting situation

0 commit comments

Comments
 (0)