Update powerwall.sh

This commit is contained in:
2023-10-31 11:38:08 -05:00
parent 889e74e7e1
commit 5dbd46d565

View File

@@ -591,7 +591,8 @@ CHECKPOWER(){
echo -e "${idsCL[LightCyan]}Total Wattage ${idsCL[Default]}: ${idsCL[Green]}${SVRRM_WATT} W${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Total Wattage ${idsCL[Default]}: ${idsCL[Green]}${SVRRM_WATT} W${idsCL[Default]}"
echo echo
until [ "${checked}" != "" ]; do finalcheck=""
until [ "${finalcheck}" != "" ]; do
for hostfile in ${PW_TMPFOLDER}/*.hostpower; do for hostfile in ${PW_TMPFOLDER}/*.hostpower; do
if [ -f ${hostfile} ] && [ "${hostfile}" != "${PW_TMPFOLDER}/*.hostpower" ]; then if [ -f ${hostfile} ] && [ "${hostfile}" != "${PW_TMPFOLDER}/*.hostpower" ]; then
host=${hostfile%.*}; host=${host##*/} host=${hostfile%.*}; host=${host##*/}
@@ -605,7 +606,7 @@ CHECKPOWER(){
mv ${hostfile} ${hostfile}.done mv ${hostfile} ${hostfile}.done
elif [ "${host}" == "done" ]; then elif [ "${host}" == "done" ]; then
checked=done finalcheck=done
rm -f ${PW_TMPFOLDER}/*.hostpower* rm -f ${PW_TMPFOLDER}/*.hostpower*
fi fi
fi fi