IMP(shellcheck): quote variables (SC2086)

This commit is contained in:
Thibault Ayanides
2020-12-04 15:04:22 +01:00
parent 106fa5fc8a
commit eaf56ca25e
55 changed files with 107 additions and 107 deletions

View File

@ -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