diff --git a/powerwall.sh b/powerwall.sh index 36ba68f3..2eb05d81 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 + 0)) + temp_f=$(($temp_f)) if [ $temp_f -ge ${temp_warn} ] && [ $temp_f -lt ${temp_crit} ]; then echo "WARNING: $temp_f"