From 7cc48be50114b85671cdb86a1eb9328f51fb6c12 Mon Sep 17 00:00:00 2001 From: magistratus-de Date: Sat, 9 Aug 2025 00:15:35 +0200 Subject: [PATCH] fix: correct if statement (#4801) correction of a minor error Co-authored-by: Daniel Gibbs --- lgsm/modules/alert_email.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/alert_email.sh b/lgsm/modules/alert_email.sh index aa13494d1..81c01e25b 100644 --- a/lgsm/modules/alert_email.sh +++ b/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