From a9b325bcaa40c59c2fe8c4838f83d042867a660e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 13 Dec 2023 19:03:16 -0600 Subject: [PATCH] update --- powerwall.sh | 4 ++-- run.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 1bd0ed3f..8e01b448 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -1185,8 +1185,8 @@ SERVICE_MNG(){ fi MSG="${sa} ${PW_POWERWALL_SERVICES[${1}]} Service" - c=0; spc=''; spc1=`expr 40 - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - echo -en "${idsCL[LightCyan]}${MSG}${spc}: " + c=0; spc=''; spc1=`expr 38 - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done + echo -en "${idsCL[LightCyan]}${MSG}${spc}${idsCL[Default]}: " # /bin/systemctl ${2} ${PW_POWERWALL_SERVICES[${1}]} echo -e "${idsCL[Green]}Done${idsCL[Default]}" } diff --git a/run.sh b/run.sh index ee354038..89468e9b 100755 --- a/run.sh +++ b/run.sh @@ -48,7 +48,7 @@ if [ "${1}" == "update" ]; then read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice case "$choice" in [Yy]) - echo -e "\n${idsCL[Yellow]}Restarting Powerwall services to apply update ${idsCL[White]} ... \n" + echo -e "\n${idsCL[Yellow]}Restarting Powerwall services to apply update ${idsCL[White]}\n" ${PW_SCRIPT} service all restart ;; *) echo;;