Update powerwall.sh

This commit is contained in:
2023-11-01 19:42:44 -05:00
parent ca19755ef0
commit 69c68a2c74

View File

@@ -541,7 +541,7 @@ CHECKPOWER(){
if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then
for SENSOR in ${PW_SENSOR_ORD[@]}; do
if [ "${PW_HOST_IDRACS[${SENSOR}]}" != "" ] && [[ "${PW_ESXI_HOST_NAMES[${SENSOR}]}" = *"iDS-vMS"* ]]; then
if [ "${PW_HOST_IDRACS[${SENSOR}]}" != "" ] && [[ "${PW_ESXI_HOST_NAMES[${SENSOR}]}" =~ *"iDS-vMS"* ]]; then
GETHOSTPOWER ${PW_HOST_IDRACS[${SENSOR}]} &
fi
done
@@ -616,8 +616,8 @@ CHECKPOWER(){
echo
fi
echo -e "${idsCL[LightYellow]}ESXi Hosts"
DIVIDER . lightYellow 75
echo -e "${idsCL[LightBlue]}ESXi Hosts"
DIVIDER . lightBlue 75
if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then
finalcheck=""