瀏覽代碼

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 月之前
父節點
當前提交
fc5e723d17
共有 1 個文件被更改,包括 3 次插入1 次删除
  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}"