diff --git a/defaults.inc b/defaults.inc index c197df6e..f91343ee 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.0-05142023' +VERS='2.120-05142023' noheader=' update ' diff --git a/powerwall.sh b/powerwall.sh index a043306a..dc1cb6ea 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -361,7 +361,8 @@ TEST(){ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then echo DIVIDER . lightGreen 48 - echo -e "${idsCL[LightGreen]}| PowerWall Management ${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS}) ${idsCL[LightGreen]}|${idsCL[Default]}" + c=0; spc=''; spc1=`expr 18 - ${#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]}" DIVIDER . lightGreen 48 fi