mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-24 11:34:35 +02:00
IMP(shellcheck): disable sed replacement (SC2001)
Shellcheck recommands to replace sed by shell expansions in 'simple' cases. However, the replacement here is likely to lead to erros, so we disable this rule. Moreover, it does'nt really add readability.
This commit is contained in:
@ -51,7 +51,7 @@ apply() {
|
||||
FILEPERM=$(ls -ld "$FILE" | cut -f1 -d" ")
|
||||
if [ "$(echo "$FILEPERM" | cut -c6)" != "-" ]; then
|
||||
warn "Group Write permission set on FILE $FILE"
|
||||
chmod g-w "$FILE"
|
||||
chmod g-w "$FILE"
|
||||
fi
|
||||
if [ "$(echo "$FILEPERM" | cut -c9)" != "-" ]; then
|
||||
warn "Other Write permission set on FILE $FILE"
|
||||
|
Reference in New Issue
Block a user