diff --git a/defaults.inc b/defaults.inc index f6e741df..1d319e15 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.8.34-05052025' +PW_VERS='2.8.34-05052025' noheader=' update service dailytemp confsync -r -report test ' diff --git a/powerwall.sh b/powerwall.sh index 4a630613..016ab011 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -879,7 +879,7 @@ if [[ "${1}" != *"_service" ]] && [[ "${noheader}" != *" ${1} "* ]] && [[ "${noh DIVIDER . lightGreen ${PRI_WIDTH} msg="|| PowerWall Management ${idsCL[Default]}" c=0; spc=''; spc1=`expr 77 - ${#msg} - ${#VERS}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done - echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${VERS} ${idsCL[LightGreen]}||${idsCL[Default]}" + echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${PW_VERS} ${idsCL[LightGreen]}||${idsCL[Default]}" DIVIDER . lightGreen ${PRI_WIDTH} fi fi diff --git a/run.sh b/run.sh index cf99d891..c5c97612 100755 --- a/run.sh +++ b/run.sh @@ -46,7 +46,7 @@ if [ "${1}" == "update" ]; then source /opt/idssys/powerwall/defaults.inc if [ "${2}" != "q" ]; then echo -en "\e[1A"; - echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}" + echo -e "\e[0K\r ${idsCL[Green]}Update to v${PW_VERS} complete${idsCL[Default]}" fi if [ -f ${NM_TMPFOLDER}/.singleserver.PW.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO.primary ]; then echo -en "${idsCL[LightCyan]}Do you want to restart PowerWall Services as well? (y/N): "