fix: fix mailx argument
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -53,7 +53,7 @@ function send_mail() {
|
|||||||
local MAIL_VERBOSE="-v"
|
local MAIL_VERBOSE="-v"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$2" | mailx "${MAIL_VERBOSE}" -s "$1" ${MAIL_SMTP_VARIABLES} "${MAIL_TO}"
|
echo "$2" | mailx ${MAIL_VERBOSE} -s "$1" ${MAIL_SMTP_VARIABLES} "${MAIL_TO}"
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
color red "mail sending failed"
|
color red "mail sending failed"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user