From 9bd5b46d972c424a663777c1c83c9720741932f9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Dec 2023 10:55:28 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 89f7f3d7..6474c3f4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -783,7 +783,7 @@ MAINTENANCE_MODE(){ for srvc in "${!srvcs}"; do if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel=" ${item_number})"; fi - c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#NM_REPL_DESC[${rcheck}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#NM_SERVICE_DESC[${srvc}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${isel} ${idsCL[White]}${NM_SERVICE_DESC[${srvc}]}${spc}${idsCL[Default]}: " echo -e "${idsCL[LightGreen]}here${idsCL[Default]}" @@ -802,7 +802,7 @@ MAINTENANCE_MODE(){ for docker in "${!dockers}"; do if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel=" ${item_number})"; fi - c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#NM_REPL_DESC[${rcheck}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#NM_DOCKER_DESC[${docker}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${isel} ${idsCL[White]}${NM_DOCKER_DESC[${docker}]}$spc${idsCL[Default]}: " echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"