Merge pull request #3455 from ecm75/notify_fix

fix _exists error message if MAIL_BIN env variable is not set
This commit is contained in:
neil 2021-04-29 22:34:11 +08:00 committed by GitHub
commit ec0538d251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ mail_send() {
_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
_MAIL_BIN="$b"
break