From 4423685e073b33c690b1f1fbc184c8cc69efc942 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 31 Oct 2023 09:37:01 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 9a6b4f17..cd4a6039 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -521,7 +521,7 @@ check_GETHOSTPOWER(){ if [ "${PW_HOST_IDRACS[${SENSOR}]}" != "" ]; then checked="" until [ "${checked}" != "" ]; do - [ -f ${PW_TMPFOLDER}/${PW_HOST_IDRACS[${SENSOR}]}.hostpower ] && checked=good + [ -f ${PW_TMPFOLDER}/${PW_HOST_IDRACS[${SENSOR}]}.hostpower.done ] && checked=good done echo "FOUND --------------------------" fi @@ -601,11 +601,12 @@ CHECKPOWER(){ watts=$(cat ${hostfile}) # echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}" echo -e "${idsCL[LightCyan]}HOST '${host}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}" + mv ${hostfile} ${hostfile}.done fi done [ -f ${PW_TMPFOLDER}/done.hostpower ] && checked=done done - rm -f ${PW_TMPFOLDER}/*.hostpower + rm -f ${PW_TMPFOLDER}/*.hostpower* [ "${action}" != "" ] && echo }