Ignore case for sshd conf

fix #85
This commit is contained in:
Thibault Ayanides
2021-04-02 08:56:37 +02:00
committed by Thibault Ayanides
parent cbd81b8ab2
commit d110a2aa19
17 changed files with 48 additions and 48 deletions

View File

@ -61,7 +61,7 @@ apply() {
ok "$PATTERN is present in $FILE"
else
warn "$PATTERN is not present in $FILE, adding it"
does_pattern_exist_in_file "$FILE" "^${SSH_PARAM}"
does_pattern_exist_in_file_nocase "$FILE" "^${SSH_PARAM}"
if [ "$FNRET" != 0 ]; then
add_end_of_file "$FILE" "$SSH_PARAM $SSH_VALUE"
else