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
30f2c2bd
Unverified
Commit
30f2c2bd
authored
May 13, 2019
by
Honza Hommer
Browse files
prevent _MAIL_BIN modification
parent
e3052c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/mail.sh
View file @
30f2c2bd
...
...
@@ -72,7 +72,7 @@ mail_send() {
_mail_cmnd
()
{
if
[
-n
"
$MAIL_BIN
"
]
;
then
_MAIL_BIN
=
$(
basename
"
$MAIL_BIN
"
)
_MAIL_BIN
=
"
$MAIL_BIN
"
elif
_exists
"sendmail"
;
then
_MAIL_BIN
=
"sendmail"
elif
_exists
"ssmtp"
;
then
...
...
@@ -86,7 +86,7 @@ _mail_cmnd() {
return
1
fi
case
"
$_MAIL_BIN
"
in
case
$(
basename
"
$_MAIL_BIN
"
)
in
sendmail
)
if
[
-n
"
$MAIL_FROM
"
]
;
then
echo
"'
$_MAIL_BIN
' -f '
$MAIL_FROM
' '
$MAIL_TO
'"
...
...
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