From 9c9947a353cae1866cdde8d3c8fb4423351a8aca Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 11:35:55 -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 4ef256f3..2f44331c 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -22,7 +22,7 @@ CHECKTEMP(){ temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc` #echo "$temp_c -> $temp_f" - temp_warn=${TEMP_THRESHOLDS[${1}]} + temp_warn=${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 echo $temp_warn if [ $temp_f -ge ${TEMP_THRESHOLDS[${1}]['warn']} ] && [ $temp_f -lt ${TEMP_THRESHOLDS[${1}]['crit']} ]; then