From ad814794ab30adfb1b3e1b10d66e30664a5f890b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 8 Sep 2022 21:39:14 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 6d1d1d7c..deea7eab 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -77,10 +77,10 @@ CHECKTEMP_SERVICE(){ echo "($datetime) CRITICAL: $temp_f°F - (Difference of $temp_diff°)" else - if [ "$last_temp" > "1" ]; then + if [ $last_temp -gt 1 ]; then echo -e "($datetime) NORMAL TEMP: $temp_f°F\nPrevious Temp: $last_tempf°FF" | mail -s "${1} BACK TO NORMAL" $email_alert echo "alert sent" - elif [ "$last_temp" == "0" ]; then + elif [ "$last_temp" = "0" ]; then echo "NORMAL TEMP: $temp_f°F" | mail -s "${1} TEMP NORMAL" $email_alert; fi last_temp=1