Update powerwall.sh

This commit is contained in:
2023-10-31 09:44:56 -05:00
parent 8d45b2a260
commit 43ae047fb3

View File

@@ -596,8 +596,7 @@ CHECKPOWER(){
until [ "${checked}" != "" ]; do
for hostfile in ${PW_TMPFOLDER}/*.hostpower; do
echo "HERE: $hostfile"
if [ -f ${hostfile} ] && [ "${hostfile}" != ${PW_TMPFOLDER}/*.hostpower ]; then
if [ -f ${hostfile} ] && [ "${hostfile}" != "${PW_TMPFOLDER}/*.hostpower" ]; then
host=${hostfile%.*}; host=${host##*/}
if [ "${host}" != "*" ]; then
watts=$(cat ${hostfile})