ee1b7596565cac1e13ba64315c1dac6fb854c8c7

Author
zertrin <zrk951@gmail.com>
Committer
zertrin <zrk951@gmail.com>
Date

Message

Fix issue #38 : Multiple recipients

Quick fix for the case of multiple email recipients.
Thanks to raydoll for the bug report.

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index 67a02f0b3e913638a45aac267c13d4393a1b8a8a..90d09a0d04e9184e19bcfafb424bf6a0a2794469 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -246,7 +246,7 @@ check_logdir()
 6 
 7 email_logfile()
 8 {
 9-  if [ $EMAIL_TO ]; then
10+  if [ ! -z "$EMAIL_TO" ]; then
11       MAILCMD=$(which $MAIL)
12       if [ ! -x "$MAILCMD" ]; then
13           echo -e "Email couldn't be sent. ${MAIL} not available." >> ${LOGFILE}