From c972ee84b45b7773e25b1ecbfaa9940070e2690e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 May 2023 17:08:45 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index cabcf109..1fdd618e 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -37,10 +37,10 @@ CHECKTEMP(){ else for SENSOR in ${!SENSOR_ID[@]}; do - echo -en "${idsCL[LightCyan]}Gathering '${SENSOR}' Data...${spc}${idsCL[Default]}: ${reading}" + echo -e "${idsCL[LightCyan]}Gathering '${SENSOR}' Data..." reading=$(CHECKTEMPSENSOR ${SENSOR}) c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -e "\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" + echo -e "\r\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" done fi [ "${action}" != "" ] && echo