mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-17 11:51:43 +00:00
fix _exists error message when MAIL_BIN env variable is not set
This commit is contained in:
parent
c33e5bc40f
commit
3c7be32ef5
@ -78,8 +78,13 @@ mail_send() {
|
|||||||
|
|
||||||
_mail_bin() {
|
_mail_bin() {
|
||||||
_MAIL_BIN=""
|
_MAIL_BIN=""
|
||||||
|
_MAIL_BINS="sendmail ssmtp mutt mail msmtp"
|
||||||
|
|
||||||
for b in "$MAIL_BIN" sendmail ssmtp mutt mail msmtp; do
|
if [ -n "$MAIL_BIN" ]; then
|
||||||
|
_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