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:
parent
b1554306fb
commit
ee1b759656
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ check_logdir()
|
||||||
|
|
||||||
email_logfile()
|
email_logfile()
|
||||||
{
|
{
|
||||||
if [ $EMAIL_TO ]; then
|
if [ ! -z "$EMAIL_TO" ]; then
|
||||||
MAILCMD=$(which $MAIL)
|
MAILCMD=$(which $MAIL)
|
||||||
if [ ! -x "$MAILCMD" ]; then
|
if [ ! -x "$MAILCMD" ]; then
|
||||||
echo -e "Email couldn't be sent. ${MAIL} not available." >> ${LOGFILE}
|
echo -e "Email couldn't be sent. ${MAIL} not available." >> ${LOGFILE}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue