]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-script-wrapper
Respect "dry run mode" when continuing snapshots
[backup-script.git] / bin / backup-script-wrapper
index 925be37c958463a0500274eaefd0df2499f86a2f..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"
@@ -54,6 +54,7 @@ fi
 
 case "$r" in
        0)
+               SUBJECT="$SUBJECT - success"
                ;;
        *)
                SUBJECT="$SUBJECT - with ERRORS!"