Browse Source

fix: correct if statement (#4801)

correction of a minor error

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
pull/4648/merge
magistratus-de 3 days ago
committed by GitHub
parent
commit
7cc48be501
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      lgsm/modules/alert_email.sh

2
lgsm/modules/alert_email.sh

@ -15,7 +15,7 @@ else
mail -s "${alerttitle}" "${email}" < "${alertlog}"
fi
exitcode=$?
if [ "${exitcode}" -ne 0 ]; then
if [ "${exitcode}" -eq 0 ]; then
fn_print_ok_nl "Sending Email alert: ${email}"
fn_script_log_pass "Sending Email alert: ${email}"
else

Loading…
Cancel
Save