From 3a48d5a7199113a3acb77d8ccde88ba307084169 Mon Sep 17 00:00:00 2001 From: zertrin Date: Sat, 10 Oct 2015 13:31:12 +0200 Subject: [PATCH] Fix bug #106 (unary operator expected) --- duplicity-backup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 699c590..02c9294 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -844,8 +844,7 @@ esac echo -e "--------- END DUPLICITY-BACKUP SCRIPT ---------\n" >> ${LOGFILE} -if [ ${EMAIL_FAILURE_ONLY} == "yes" ] -then +if [ "$EMAIL_FAILURE_ONLY" = "yes" ]; then if [ ${BACKUP_ERROR} ]; then EMAIL_SUBJECT="BACKUP ERROR: ${EMAIL_SUBJECT}" email_logfile