From 43ae047fb339188c1548e32dd8754d545ca627f2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 31 Oct 2023 09:44:56 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 38ca6929..a6667afd 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -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})