Daniel Gibbs %!s(int64=5) %!d(string=hai) anos
pai
achega
c884f975bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lgsm/functions/alert_email.sh

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