mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-24 14:31:24 +01:00
IMP(shellcheck): fix docker shellcheck with new options
This commit is contained in:
parent
6e0b47ab8f
commit
0204bb0942
@ -14,7 +14,7 @@ fi
|
|||||||
for f in $files; do
|
for f in $files; do
|
||||||
if head "$f" | grep -qE "^# run-shellcheck$"; then
|
if head "$f" | grep -qE "^# run-shellcheck$"; then
|
||||||
printf "\e[1;36mRunning shellcheck on: %s \e[0m\n" "$f"
|
printf "\e[1;36mRunning shellcheck on: %s \e[0m\n" "$f"
|
||||||
if ! /usr/bin/shellcheck --color=always --shell=bash -e SC1091 "$f"; then
|
if ! /usr/bin/shellcheck --color=always --shell=bash -x --source-path=SCRIPTDIR "$f"; then
|
||||||
retval=$((retval + 1))
|
retval=$((retval + 1))
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -4,9 +4,9 @@ test_audit() {
|
|||||||
describe Running on blank host
|
describe Running on blank host
|
||||||
register_test retvalshouldbe 0
|
register_test retvalshouldbe 0
|
||||||
dismiss_count_for_test
|
dismiss_count_for_test
|
||||||
# shellcheck disable=2154
|
|
||||||
mkdir -p /etc/audit
|
mkdir -p /etc/audit
|
||||||
touch /etc/audit/auditd.conf
|
touch /etc/audit/auditd.conf
|
||||||
|
# shellcheck disable=2154
|
||||||
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||||
|
|
||||||
describe Correcting situation
|
describe Correcting situation
|
||||||
|
@ -4,9 +4,9 @@ test_audit() {
|
|||||||
describe Running on blank host
|
describe Running on blank host
|
||||||
register_test retvalshouldbe 0
|
register_test retvalshouldbe 0
|
||||||
dismiss_count_for_test
|
dismiss_count_for_test
|
||||||
# shellcheck disable=2154
|
|
||||||
mkdir -p /etc/audit
|
mkdir -p /etc/audit
|
||||||
touch /etc/audit/auditd.conf
|
touch /etc/audit/auditd.conf
|
||||||
|
# shellcheck disable=2154
|
||||||
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||||
|
|
||||||
describe Correcting situation
|
describe Correcting situation
|
||||||
|
@ -4,9 +4,9 @@ test_audit() {
|
|||||||
describe Running on blank host
|
describe Running on blank host
|
||||||
register_test retvalshouldbe 0
|
register_test retvalshouldbe 0
|
||||||
dismiss_count_for_test
|
dismiss_count_for_test
|
||||||
# shellcheck disable=2154
|
|
||||||
mkdir -p /etc/audit
|
mkdir -p /etc/audit
|
||||||
touch /etc/audit/auditd.conf
|
touch /etc/audit/auditd.conf
|
||||||
|
# shellcheck disable=2154
|
||||||
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||||
|
|
||||||
describe Correcting situation
|
describe Correcting situation
|
||||||
|
Loading…
Reference in New Issue
Block a user