IMP(shellcheck): quote variable in tests (SC2086)

This commit is contained in:
Thibault Ayanides
2020-11-30 13:05:41 +01:00
parent dba1dae963
commit bc1aa65b91
36 changed files with 127 additions and 127 deletions

View File

@ -11,11 +11,11 @@ test_audit() {
local dir="/etc/passwd"
describe Tests purposely failing
echo "$test_user:x:1100:1100::/home/$test_user:" >> $dir
echo "$test_user:x:1100:1100::/home/$test_user:" >> "$dir"
register_test retvalshouldbe 1
register_test contain "is referenced by /etc/passwd but does not exist in /etc/group"
run noncompliant /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
# cleanup
userdel $test_user
userdel "$test_user"
}