diff --git a/notify/smtp.sh b/notify/smtp.sh index 4c06bd3d..4ef3fd14 100644 --- a/notify/smtp.sh +++ b/notify/smtp.sh @@ -75,7 +75,7 @@ _smtp_send() { _debug "smtp_send_output" "$smtp_send_output" - if [ $smtp_send_output =~ "message not sent" ]; then + if [[ $smtp_send_output =~ "message not sent" ]]; then return 1 else return 0