Browse Source

if

pull/3051/head
Daniel Gibbs 5 years ago
parent
commit
c884f975bc
  1. 2
      lgsm/functions/alert_email.sh

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

Loading…
Cancel
Save