From: Alexander Barton Date: Tue, 18 Apr 2017 09:59:28 +0000 (+0200) Subject: Fix shellcheck(1) warning SC2197 X-Git-Url: https://arthur.barton.de/gitweb/?p=backup-script.git;a=commitdiff_plain;h=819cfa029a3c4ce35bf22e99bf7a1b0d594b3a91 Fix shellcheck(1) warning SC2197 "fgrep is non-standard and deprecated. Use grep -F instead." --- diff --git a/bin/backup-script-wrapper b/bin/backup-script-wrapper index 3ce16a9..64c9d7d 100755 --- a/bin/backup-script-wrapper +++ b/bin/backup-script-wrapper @@ -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"