mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-17 11:51:43 +00:00
prevent _MAIL_BIN modification
This commit is contained in:
parent
e3052c8c57
commit
30f2c2bd77
@ -72,7 +72,7 @@ mail_send() {
|
|||||||
|
|
||||||
_mail_cmnd() {
|
_mail_cmnd() {
|
||||||
if [ -n "$MAIL_BIN" ]; then
|
if [ -n "$MAIL_BIN" ]; then
|
||||||
_MAIL_BIN=$(basename "$MAIL_BIN")
|
_MAIL_BIN="$MAIL_BIN"
|
||||||
elif _exists "sendmail"; then
|
elif _exists "sendmail"; then
|
||||||
_MAIL_BIN="sendmail"
|
_MAIL_BIN="sendmail"
|
||||||
elif _exists "ssmtp"; then
|
elif _exists "ssmtp"; then
|
||||||
@ -86,7 +86,7 @@ _mail_cmnd() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$_MAIL_BIN" in
|
case $(basename "$_MAIL_BIN") in
|
||||||
sendmail)
|
sendmail)
|
||||||
if [ -n "$MAIL_FROM" ]; then
|
if [ -n "$MAIL_FROM" ]; then
|
||||||
echo "'$_MAIL_BIN' -f '$MAIL_FROM' '$MAIL_TO'"
|
echo "'$_MAIL_BIN' -f '$MAIL_FROM' '$MAIL_TO'"
|
||||||
|
Loading…
Reference in New Issue
Block a user