From 6d66c83c92c45d5cdecebf682b7d9853ffc9da3d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 14:22:39 -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 b0fad7c9..fc77196b 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 - [ $temp_diff -gt 1 ] && echo "WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert + [ $temp_diff -gt 1 ] && echo "($temp_diff) WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert echo "($temp_d @ $temp_t) WARNING: $temp_f°F" elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then