From 77168c74b5d34a8afa769a20c68dda1dad094a3a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 2 Feb 2024 19:00:29 -0600 Subject: [PATCH] update --- defaults.inc | 4 ++-- powerwall.sh | 14 ++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/defaults.inc b/defaults.inc index e59b0fbf..b1acc627 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,8 +1,8 @@ #!/usr/bin/env bash -VERS='2.5.241-02022024' +VERS='2.5.243-02022024' -noheader=' update service dailytemp confsync -r -report check ' +noheader=' update service dailytemp confsync -r -report ' HC_CW=60 PRI_WIDTH=75 diff --git a/powerwall.sh b/powerwall.sh index 981ed539..ef89d849 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -754,12 +754,14 @@ TEST(){ ######################################################### if [[ "${1}" != *"_service" ]] && [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [[ "${noheader}" != *" ${3} "* ]] && [[ "${noheader}" != *" ${4} "* ]] && [[ "${noheader}" != *" ${5} "* ]]; then - echo - DIVIDER . lightGreen ${PRI_WIDTH} - msg="|| PowerWall Management ${idsCL[Default]}" - c=0; spc=''; spc1=`expr 77 - ${#msg} - ${#VERS}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${VERS} ${idsCL[LightGreen]}||${idsCL[Default]}" - DIVIDER . lightGreen ${PRI_WIDTH} + if [ "${1}" != "check" ] || ([ "${1}" == "check" ] && [ "${2}" != "all" ]) + echo + DIVIDER . lightGreen ${PRI_WIDTH} + msg="|| PowerWall Management ${idsCL[Default]}" + c=0; spc=''; spc1=`expr 77 - ${#msg} - ${#VERS}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done + echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${VERS} ${idsCL[LightGreen]}||${idsCL[Default]}" + DIVIDER . lightGreen ${PRI_WIDTH} + fi fi # if [ ${PW_ACTION-x} ]; then case ${PW_ACTION} in