mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-23 19:14:34 +02:00
IMP(shellcheck): quote variable in tests (SC2086)
This commit is contained in:
@ -15,8 +15,8 @@ test_audit() {
|
||||
|
||||
describe Tests purposely failing
|
||||
local targetfile="/home/secaudit/sgid_file"
|
||||
touch $targetfile
|
||||
chmod 2700 $targetfile
|
||||
touch "$targetfile"
|
||||
chmod 2700 "$targetfile"
|
||||
register_test retvalshouldbe 1
|
||||
register_test contain "Some sgid files are present"
|
||||
register_test contain "$targetfile"
|
||||
|
Reference in New Issue
Block a user