Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-12 10:56:48 -06:00
parent 69ceceae08
commit b86b704bfa

View File

@@ -766,7 +766,7 @@ MAINTENANCE_MODE(){
for nip in "${!hosts}"; do
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel=" ${item_number})"; fi
MSG="${NM_HOSTNAMES[${nip}]} [${nip}]"
c=0; spc=''; spc1=`expr ${PRI_CW} + 2 - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${isel} ${idsST[Bold]}${idsCL[LightCyan]}${MSG}${idsST[Reset]}${spc}${idsCL[Default]}: "
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"