Fix issue #38 : Multiple recipients

Quick fix for the case of multiple email recipients.
Thanks to raydoll for the bug report.
This commit is contained in:
zertrin 2013-03-23 00:14:23 +01:00
parent b1554306fb
commit ee1b759656

View file

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