update
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
HC_CW=60
|
||||||
PRI_WIDTH=75
|
PRI_WIDTH=75
|
||||||
|
|||||||
14
powerwall.sh
14
powerwall.sh
@@ -754,12 +754,14 @@ TEST(){
|
|||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
if [[ "${1}" != *"_service" ]] && [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [[ "${noheader}" != *" ${3} "* ]] && [[ "${noheader}" != *" ${4} "* ]] && [[ "${noheader}" != *" ${5} "* ]]; then
|
if [[ "${1}" != *"_service" ]] && [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [[ "${noheader}" != *" ${3} "* ]] && [[ "${noheader}" != *" ${4} "* ]] && [[ "${noheader}" != *" ${5} "* ]]; then
|
||||||
echo
|
if [ "${1}" != "check" ] || ([ "${1}" == "check" ] && [ "${2}" != "all" ])
|
||||||
DIVIDER . lightGreen ${PRI_WIDTH}
|
echo
|
||||||
msg="|| PowerWall Management ${idsCL[Default]}"
|
DIVIDER . lightGreen ${PRI_WIDTH}
|
||||||
c=0; spc=''; spc1=`expr 77 - ${#msg} - ${#VERS}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
msg="|| PowerWall Management ${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${VERS} ${idsCL[LightGreen]}||${idsCL[Default]}"
|
c=0; spc=''; spc1=`expr 77 - ${#msg} - ${#VERS}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||||
DIVIDER . lightGreen ${PRI_WIDTH}
|
echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${VERS} ${idsCL[LightGreen]}||${idsCL[Default]}"
|
||||||
|
DIVIDER . lightGreen ${PRI_WIDTH}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# if [ ${PW_ACTION-x} ]; then
|
# if [ ${PW_ACTION-x} ]; then
|
||||||
case ${PW_ACTION} in
|
case ${PW_ACTION} in
|
||||||
|
|||||||
Reference in New Issue
Block a user