]> arthur.barton.de Git - backup-script.git/commitdiff
Fix shellcheck(1) warning SC2197
authorAlexander Barton <alex@barton.de>
Tue, 18 Apr 2017 09:59:28 +0000 (11:59 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Apr 2017 09:59:28 +0000 (11:59 +0200)
"fgrep is non-standard and deprecated. Use grep -F instead."

bin/backup-script-wrapper

index 3ce16a969dc27d73b225cdc2242f419ba5b882fa..64c9d7d8fef8832d627547010d2c38943ecad0dc 100755 (executable)
@@ -13,7 +13,7 @@
 if [ -z "$MAILTO" ]; then
        if id "logcheck" >/dev/null 2>&1; then
                MAILTO="logcheck"
-       elif fgrep "logcheck:" /etc/aliases >/dev/null 2>&1; then
+       elif grep -F "logcheck:" /etc/aliases >/dev/null 2>&1; then
                MAILTO="logcheck"
        else
                MAILTO="root"