|
|
@@ -9,7 +9,7 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
fn_print_dots "Sending Email alert: ${email}"
|
|
|
fn_sleep_time
|
|
|
|
|
|
-if [ "${emailfrom}" ]; then
|
|
|
+if [ -n "${emailfrom}" ]; then
|
|
|
mail -s "${alertsubject}" -r "${emailfrom}" "${email}" < "${alertlog}"
|
|
|
else
|
|
|
mail -s "${alertsubject}" "${email}" < "${alertlog}"
|