fix missing test bracket on if type -p sendemail
This commit is contained in:
parent
ec16450c05
commit
802e87fab6
2
osync.sh
2
osync.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue