Fix bug #106 (unary operator expected)

This commit is contained in:
zertrin 2015-10-10 13:31:12 +02:00
parent b105051554
commit 3a48d5a719

View file

@ -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