Browse Source
Merge pull request #3455 from ecm75/notify_fix
fix _exists error message if MAIL_BIN env variable is not set
pull/3494/head
neil
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
notify/mail.sh
|
@ -79,7 +79,7 @@ mail_send() { |
|
|
_mail_bin() { |
|
|
_mail_bin() { |
|
|
_MAIL_BIN="" |
|
|
_MAIL_BIN="" |
|
|
|
|
|
|
|
|
for b in "$MAIL_BIN" sendmail ssmtp mutt mail msmtp; do |
|
|
|
|
|
|
|
|
for b in $MAIL_BIN sendmail ssmtp mutt mail msmtp; do |
|
|
if _exists "$b"; then |
|
|
if _exists "$b"; then |
|
|
_MAIL_BIN="$b" |
|
|
_MAIL_BIN="$b" |
|
|
break |
|
|
break |
|
|