Update powerwall.sh

This commit is contained in:
2023-12-13 19:16:30 -06:00
parent 084ef1c551
commit 3989bef5a3

View File

@@ -1186,7 +1186,7 @@ SERVICE_MNG(){
sa="${idsCL[Yellow]}Status for"
fi
MSG="${sa} Service - ${idsCL[LightCyan]}${PW_POWERWALL_SERVICES[${1}]}"
c=0; spc=''; spc1=`expr 50 - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
c=0; spc=''; spc1=`expr 55 - ${#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]}"