diff --git a/dev/debug_osync.sh b/dev/debug_osync.sh index ce27df1..2b277ef 100755 --- a/dev/debug_osync.sh +++ b/dev/debug_osync.sh @@ -284,6 +284,7 @@ function SendAlert { attachment_command="-a $ALERT_LOG_FILE" else attachment_command="" + fi echo "$MAIL_ALERT_MSG" | $(type -p mail) $attachment_command -s "$subject" $DESTINATION_MAILS if [ $? != 0 ]; then Logger "WARNING: Cannot send alert email via $(type -p mail) with attachments !!!" "WARN" diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index e1184c2..8bb7273 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -275,6 +275,7 @@ function SendAlert { attachment_command="-a $ALERT_LOG_FILE" else attachment_command="" + fi echo "$MAIL_ALERT_MSG" | $(type -p mail) $attachment_command -s "$subject" $DESTINATION_MAILS if [ $? != 0 ]; then Logger "WARNING: Cannot send alert email via $(type -p mail) with attachments !!!" "WARN" diff --git a/osync.sh b/osync.sh index fa603f2..4e0f071 100755 --- a/osync.sh +++ b/osync.sh @@ -272,6 +272,7 @@ function SendAlert { attachment_command="-a $ALERT_LOG_FILE" else attachment_command="" + fi echo "$MAIL_ALERT_MSG" | $(type -p mail) $attachment_command -s "$subject" $DESTINATION_MAILS if [ $? != 0 ]; then Logger "WARNING: Cannot send alert email via $(type -p mail) with attachments !!!" "WARN"