4
0
Daniel Gibbs 5 жил өмнө
parent
commit
c884f975bc

+ 1 - 1
lgsm/functions/alert_email.sh

@@ -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}"