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