Update powerwall.sh
This commit is contained in:
@@ -593,7 +593,7 @@ CHECKPOWER(){
|
||||
# done
|
||||
|
||||
until [ "${checked}" != "" ]; do
|
||||
for hostfile in ${PW_TMPFOLDER}/*.hostpower; do
|
||||
for hostfile in "${PW_TMPFOLDER}/*.hostpower"; do
|
||||
host=${hostfile%.*}; host=${host##*/}
|
||||
watts=$(cat ${hostfile})
|
||||
echo -e "${idsCL[LightCyan]}HOST '${PW_iDRACHOST_SHORTNAMES[${host}]}' ${idsCL[Default]}: ${idsCL[Green]}${watts}W${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user