diff --git a/powerwall.sh b/powerwall.sh index 8fc16fc0..b7f32592 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -44,7 +44,9 @@ CHECKTEMP(){ temp_crit=$(echo ${sensordata} | cut -d'p' -f2 | awk '/ / {print $4}' | sed -e 's/C//g'); temp_crit=${temp_crit/ /} echo -en 2 reading=$(CHECKTEMPSENSOR ${SENSOR} ${temp_c} ${temp_warn} ${temp_crit}) + echo -en 3 c=0; spc=''; spc1=`expr ${cw} - ${#vSENSOR} - 1`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -en 4 echo -e "${idsCL[LightCyan]} ${vSENSOR}${spc}${idsCL[Default]}: ${reading}" done