diff --git a/powerwall.sh b/powerwall.sh index be7de6d4..cfc327b1 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 + 0)) - temp_crit=$(($temp_crit + 0)) + 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"