Update powerwall.sh

This commit is contained in:
2023-10-31 09:28:12 -05:00
parent baa0fe1448
commit 7bb3e776dc

View File

@@ -594,9 +594,9 @@ CHECKPOWER(){
until [ "${checked}" != "" ]; do
for hostfile in "${PW_TMPFOLDER}/*.hostpower"; do
echo "HERE: $host = $hostfile"
if [ -f ${hostfile} ]; then
host=${hostfile%.*}; host=${host##*/}
echo "HERE: $host = $hostfile"
watts=$(cat ${hostfile})
echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
rm -f ${hostfile}