Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
3c7be32e
You need to sign in or sign up before continuing.
Commit
3c7be32e
authored
Mar 22, 2021
by
emueller
Browse files
fix _exists error message when MAIL_BIN env variable is not set
parent
c33e5bc4
Changes
1
Show whitespace changes
Inline
Side-by-side
notify/mail.sh
View file @
3c7be32e
...
...
@@ -78,8 +78,13 @@ mail_send() {
_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
_MAIL_BIN
=
"
$b
"
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment