From e282cace8663769f760478a4d4f21d2f87b5da42 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 31 Oct 2023 11:20:58 -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 16a10f6a..d9b17b3f 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -599,8 +599,9 @@ CHECKPOWER(){ if [ "${host}" != "*" ] && [ "${host}" != "done" ]; then watts=$(cat ${hostfile}) if [ "${watts}" == "down" ]; then hostpower="${idsCL[Red]}Host Offline" - elif [ "${watts}" == "0" ]; then hostpower="${idsCL[Default]}n/a" - else hostpower="${idsCL[Green]}${watts} W" + elif [ "${watts}" == "0" ]; then hostpower="${idsCL[Default]}n/a" + else hostpower="${idsCL[Green]}${watts} W" + fi echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${hostpower}${idsCL[Default]}" mv ${hostfile} ${hostfile}.done