Fix bash line continuation in mail-host-notification.sh

This commit is contained in:
vigiroux 2019-12-06 15:00:42 -05:00
parent f0b8892e4a
commit 52e09a287d
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ if [ -n "$MAILFROM" ] ; then
## Debian/Ubuntu use mailutils which requires `-a` to append the header
if [ -f /etc/debian_version ]; then
/usr/bin/printf "%b" "$NOTIFICATION_MESSAGE" | tr -d '\015'
/usr/bin/printf "%b" "$NOTIFICATION_MESSAGE" | tr -d '\015' \
| $MAILBIN -a "From: $MAILFROM" -s "$ENCODED_SUBJECT" $USEREMAIL
## Other distributions (RHEL/SUSE/etc.) prefer mailx which sets a sender address with `-r`
else