From cfe95750010eba47732e69dcef317d531b192b60 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 24 Jun 2023 14:09:10 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 17b37b66..7e821c43 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -717,8 +717,9 @@ TEST(){ if [[ "${1}" != *"_service" ]] && [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then echo DIVIDER . lightGreen 70 - c=0; spc=''; spc1=`expr 32 - ${#VERS}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -e "${idsCL[LightGreen]}| PowerWall Management ${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${spc}${idsCL[LightGreen]}|${idsCL[Default]}" + msg="| PowerWall Management ${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})" + c=0; spc=''; spc1=`expr 70 - ${#msg}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGreen]}|${idsCL[Default]}" DIVIDER . lightGreen 70 fi