Small bug fix on mailx part of sending duplicity log (by originalmind)
Seems that BASH requires a space after the '[' character on line 250
This commit is contained in:
parent
7aa30b2e27
commit
44a86ae1bc
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ email_logfile()
|
|||
if [ "$MAIL" = "ssmtp" ]; then
|
||||
echo """Subject: ${EMAIL_SUBJECT}""" | cat - ${LOGFILE} | ${MAILCMD} -s ${EMAIL_TO}
|
||||
|
||||
elif ["$MAIL" = "mailx" ]; then
|
||||
elif [ "$MAIL" = "mailx" ]; then
|
||||
EMAIL_FROM=${EMAIL_FROM:+"-r ${EMAIL_FROM}"}
|
||||
cat ${LOGFILE} | ${MAILCMD} -s """${EMAIL_SUBJECT}""" $EMAIL_FROM ${EMAIL_TO}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue