Unverified Commit eb0c629f authored by Eike-Christian Müller's avatar Eike-Christian Müller Committed by GitHub
Browse files

more simple mail.sh fix

Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang.
parent 37e3e2f9
......@@ -78,13 +78,8 @@ mail_send() {
_mail_bin() {
_MAIL_BIN=""
_MAIL_BINS="sendmail ssmtp mutt mail msmtp"
if [ -n "$MAIL_BIN" ]; then
_MAIL_BINS="$MAIL_BIN $_MAIL_BINS"
fi
for b in $_MAIL_BINS; do
for b in $MAIL_BIN sendmail ssmtp mutt mail msmtp; do
if _exists "$b"; then
_MAIL_BIN="$b"
break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment