diff --git a/powerwall.sh b/powerwall.sh index 2eac8009..7d9c5721 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -64,9 +64,9 @@ CHECKTEMP(){ c=0; spc=''; spc1=`expr ${cw} - ${#sensorname} - 1`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - [ "${1}" != "noavg" ] && [ "${1}" != "" ] && echo -en "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: Calculating ${1} Day average" + [ "${1}" != "noavg" ] && echo -en "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: Calculating ${1} Day average" reading=$(CHECKTEMPSENSOR ${SENSOR} ${temp_c} ${temp_warn} ${temp_crit} ${sensorname// /_} ${1}) - [ "${1}" != "noavg" ] && [ "${1}" != "" ] && echo -en "\r\033[K" + [ "${1}" != "noavg" ] && echo -en "\r\033[K" echo -e "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: ${reading}" ((t++))