From 1f59b2ed2e36a420fa06e53f0d20c159fa1d9c0c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 14 May 2023 22:25:53 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- powerwall.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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