From 2ebd9212d9d8fe9b6a9330205b78272649073e46 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 31 Oct 2023 21:51:30 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 22e06196..29257f1b 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -1154,8 +1154,8 @@ HOSTPOWER(){ if [ "${idracip}" != "" ]; then host=${PW_iDRACHOST_SHORTNAMES[${idracip}]} - c=0; spcA=''; spc1=`expr 18 - ${#host} - 1`; until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done - c=0; spcB=''; spc1=`expr 16 - ${#PW_HOST_ADDRESSES[${host}]} - 1`; until [ $c = ${spc1} ]; do spcB="${spcB} "; c=`expr $c + 1`; done + c=0; spcA=''; spc1=`expr 21 - ${#host} - 1`; until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done + c=0; spcB=''; spc1=`expr 18 - ${#PW_HOST_ADDRESSES[${host}]} - 1`; until [ $c = ${spc1} ]; do spcB="${spcB} "; c=`expr $c + 1`; done echo -en "${idsCL[LightCyan]} Host: ${idsCL[Green]}${host}${spcA}" echo -en "${idsCL[LightCyan]}Host IP: ${idsCL[Green]}${PW_HOST_ADDRESSES[${host}]}${spcB}" echo -e "${idsCL[LightCyan]}iDrac IP: ${idsCL[Green]}${idracip}${idsCL[Default]}"