From d7b0e3024c8984201a14bcb295e6e9cc97f3d31a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Dec 2023 23:10:48 -0600 Subject: [PATCH] Update shutdown-test.sh --- shutdown-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shutdown-test.sh b/shutdown-test.sh index 4c81fa10..12c6a7f8 100644 --- a/shutdown-test.sh +++ b/shutdown-test.sh @@ -138,8 +138,8 @@ SHUTDOWN_SERVER2(){ else for ESXIHOST in "${ESXI_HOSTS[@]}"; do - MSG="Enabling maintenance mode & starting iSCSI migrations on: ${PW_ESXI_HOST_NAMES[${ESXIHOST}]}" - # c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done + MSG="Enabling maintenance mode on: ${PW_ESXI_HOST_NAMES[${ESXIHOST}]}" + c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done echo -en "${idsCL[White]}${MSG//${PW_ESXI_HOST_NAMES[${ESXIHOST}]}/${idsCL[LightCyan]}${PW_ESXI_HOST_NAMES[${ESXIHOST}]}}${idsCL[White]}${MSG_SPC}: " if [ "${TEST}" != "true" ]; then ${PW_FOLDER}/esxi-scripts/host-maintenance_mode.ps1 ${PW_VCENTER_HOST_NAMES[${ESXIHOST}]} >/dev/null 2>&1 &