3a48d5a7199113a3acb77d8ccde88ba307084169
- Author
- zertrin <zertrin@gmail.com>
- Committer
- zertrin <zertrin@gmail.com>
- Date
Message
Fix bug #106 (unary operator expected)
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index 699c590601711e4a2fdc4d8249614b86a162f22a..02c929457fe06c7f6327368365990ca349708284 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -844,8 +844,7 @@ esac
6
7 echo -e "--------- END DUPLICITY-BACKUP SCRIPT ---------\n" >> ${LOGFILE}
8
9-if [ ${EMAIL_FAILURE_ONLY} == "yes" ]
10-then
11+if [ "$EMAIL_FAILURE_ONLY" = "yes" ]; then
12 if [ ${BACKUP_ERROR} ]; then
13 EMAIL_SUBJECT="BACKUP ERROR: ${EMAIL_SUBJECT}"
14 email_logfile