mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 05:01:40 +00:00
more simple mail.sh fix
Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang.
This commit is contained in:
parent
37e3e2f9c2
commit
eb0c629fad
@ -78,13 +78,8 @@ mail_send() {
|
|||||||
|
|
||||||
_mail_bin() {
|
_mail_bin() {
|
||||||
_MAIL_BIN=""
|
_MAIL_BIN=""
|
||||||
_MAIL_BINS="sendmail ssmtp mutt mail msmtp"
|
|
||||||
|
|
||||||
if [ -n "$MAIL_BIN" ]; then
|
for b in $MAIL_BIN sendmail ssmtp mutt mail msmtp; do
|
||||||
_MAIL_BINS="$MAIL_BIN $_MAIL_BINS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for b in $_MAIL_BINS; do
|
|
||||||
if _exists "$b"; then
|
if _exists "$b"; then
|
||||||
_MAIL_BIN="$b"
|
_MAIL_BIN="$b"
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user