mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-24 03:24:34 +02:00
IMP(shellcheck): quote variable in tests (SC2086)
This commit is contained in:
@ -9,8 +9,8 @@ test_audit() {
|
||||
|
||||
describe Tests purposely failing
|
||||
local targetfile="/home/secaudit/unowned"
|
||||
touch $targetfile
|
||||
chown 1200 $targetfile
|
||||
touch "$targetfile"
|
||||
chown 1200 "$targetfile"
|
||||
register_test retvalshouldbe 1
|
||||
register_test contain "Some unowned files are present"
|
||||
run noncompliant /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
Reference in New Issue
Block a user