mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-24 03:24:34 +02:00
IMP(shellcheck): quote variables (SC2086)
This commit is contained in:
@ -46,7 +46,7 @@ audit() {
|
||||
|
||||
done
|
||||
|
||||
if [ $ERRORS = 0 ]; then
|
||||
if [ "$ERRORS" = 0 ]; then
|
||||
ok "SSH public keys in $DIR have correct permissions"
|
||||
fi
|
||||
|
||||
@ -62,7 +62,7 @@ audit() {
|
||||
fi
|
||||
done
|
||||
|
||||
if [ $ERRORS = 0 ]; then
|
||||
if [ "$ERRORS" = 0 ]; then
|
||||
ok "SSH public keys in $DIR have correct ownership"
|
||||
fi
|
||||
}
|
||||
@ -95,7 +95,7 @@ apply() {
|
||||
ok "$FILE ownership was set to $USER:$GROUP"
|
||||
else
|
||||
warn "fixing $DIR SSH public keys ownership to $PERMISSIONS"
|
||||
chown $USER:$GROUP $FILE
|
||||
chown "$USER":"$GROUP" "$FILE"
|
||||
fi
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user