Преглед изворни кода

fix: correct if statement (#4801)

correction of a minor error

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
magistratus-de пре 9 месеци
родитељ
комит
7cc48be501
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lgsm/modules/alert_email.sh

+ 1 - 1
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