This commit is contained in:
2024-02-02 19:00:29 -06:00
parent 14e9085b3b
commit 77168c74b5
2 changed files with 10 additions and 8 deletions

View File

@@ -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

View File

@@ -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