Skip to content

Commit fc5e723

Browse files
committed
fix(info_messages): Correct IFTTT alert condition check
* Updated the IFTTT alert output to only display when the alert is set to "on". * This change ensures that unnecessary output is avoided when the alert is not active.
1 parent 77f9429 commit fc5e723

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lgsm/modules/info_messages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,9 @@ fn_info_messages_script() {
598598
echo -e "${lightblue}Gotify alert:\t${default}${gotifyalert}"
599599
fi
600600
# IFTTT alert
601-
echo -e "${lightblue}IFTTT alert:\t${default}${iftttalert}"
601+
if [ "${iftttalert}" == "on" ]; then
602+
echo -e "${lightblue}IFTTT alert:\t${default}${iftttalert}"
603+
fi
602604
# Pushbullet alert
603605
if [ "${pushbulletalert}" == "on" ]; then
604606
echo -e "${lightblue}Pushbullet alert:\t${default}${pushbulletalert}"

0 commit comments

Comments
 (0)