diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 67a02f0..90d09a0 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -246,7 +246,7 @@ check_logdir() email_logfile() { - if [ $EMAIL_TO ]; then + if [ ! -z "$EMAIL_TO" ]; then MAILCMD=$(which $MAIL) if [ ! -x "$MAILCMD" ]; then echo -e "Email couldn't be sent. ${MAIL} not available." >> ${LOGFILE}