Sfoglia il codice sorgente

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.
Daniel Gibbs 6 mesi fa
parent
commit
fc5e723d17
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      lgsm/modules/info_messages.sh

+ 3 - 1
lgsm/modules/info_messages.sh

@@ -598,7 +598,9 @@ fn_info_messages_script() {
 			echo -e "${lightblue}Gotify alert:\t${default}${gotifyalert}"
 		fi
 		# IFTTT alert
-		echo -e "${lightblue}IFTTT alert:\t${default}${iftttalert}"
+    if [ "${iftttalert}" == "on" ]; then
+			echo -e "${lightblue}IFTTT alert:\t${default}${iftttalert}"
+		fi
 		# Pushbullet alert
 		if [ "${pushbulletalert}" == "on" ]; then
 			echo -e "${lightblue}Pushbullet alert:\t${default}${pushbulletalert}"