From c1d5487a1300f384d02ed41eed8baa84b9dfc19d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 11:50:30 -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 2eb05d81..e9d1edf8 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -24,7 +24,7 @@ CHECKTEMP(){ echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit - temp_f=$(($temp_f)) + temp_f=$temp_f if [ $temp_f -ge ${temp_warn} ] && [ $temp_f -lt ${temp_crit} ]; then echo "WARNING: $temp_f"