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:
@ -10,7 +10,7 @@ test_audit() {
|
||||
local test_user="testemptypassworduser"
|
||||
|
||||
describe Tests purposely failing
|
||||
useradd $test_user
|
||||
useradd "$test_user"
|
||||
sed -i "s/$test_user:\!/$test_user:/" /etc/shadow
|
||||
register_test retvalshouldbe 1
|
||||
register_test contain "Some accounts have an empty password"
|
||||
@ -26,5 +26,5 @@ test_audit() {
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
# cleanup
|
||||
userdel $test_user
|
||||
userdel "$test_user"
|
||||
}
|
||||
|
Reference in New Issue
Block a user