Make sure to quote the subject when emailing

This commit is contained in:
baldurk
2018-05-03 09:49:12 +01:00
parent 6c68853ef7
commit b8ffc1c79f
+1 -1
View File
@@ -20,5 +20,5 @@ if [ -f "${EMAILHOST}" ]; then
ssh $(cat "${EMAILHOST}") "mail -s \"$SUBJECT\" $ERRORMAIL" < $EMAIL_BODY_FILE
exit;
else
mail -s $SUBJECT $ERRORMAIL < $EMAIL_BODY_FILE
mail -s \"$SUBJECT\" $ERRORMAIL < $EMAIL_BODY_FILE
fi