Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-12 10:51:54 -06:00
parent ea87927510
commit d14859c228

View File

@@ -764,7 +764,13 @@ MAINTENANCE_MODE(){
DIVIDER . lightYellow ${DV_LEN}; echo -en "${idsST[Reset]}"
for nip in "${!hosts}"; do
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}${idsCL[Default]}"
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} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "${isel} ${idsST[Bold]}${idsCL[LightCyan]}${MSG}${idsST[Reset]}${spc}${idsCL[Default]}: "
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
((item_number++))
DIVIDER false lightCyan ${DV_LEN}