From 09b6ae2628b0f51e5dd55b74ac1f7e9dd669575c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 14:42:06 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index a6553111..24c3b6f8 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -56,7 +56,7 @@ CHECKTEMP_SERVICE(){ [ $temp_diff -lt 0 ] && temp_diff=$(($temp_diff * -1)) if [ $(bc -l <<< "$temp_f >= $temp_warn") -eq 1 ] && [ $(bc -l <<< "$temp_f < $temp_crit") -eq 1 ]; then - if [ [ $temp_diff -gt 1 ] || [ "$last_temp" == "0" ] ]; then + if [ [ $temp_diff -gt 1 ] || [ "$last_temp" = "0" ] ]; then echo "($temp_diff) WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert last_temp=$temp_f fi