fix missing test bracket on if type -p sendemail

This commit is contained in:
senorsmile 2015-01-16 22:40:17 -08:00
parent ec16450c05
commit 802e87fab6
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ function SendAlert
fi fi
elif type -p sendemail > /dev/null 2>&1 elif type -p sendemail > /dev/null 2>&1
then then
if [ "$SMTP_USER" != "" ] && "$SMTP_PASSWORD" != "" ] if [ "$SMTP_USER" != "" ] && [ "$SMTP_PASSWORD" != "" ]
then then
$SMTP_OPTIONS="-xu $SMTP_USER -xp $SMTP_PASSWORD" $SMTP_OPTIONS="-xu $SMTP_USER -xp $SMTP_PASSWORD"
else else