From 3e19b6aaee4efb0f994f04343798158f81389410 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 30 May 2025 17:42:27 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6e55d365..b8cd1ba7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -916,7 +916,7 @@ DOWNLIST(){ ditem=${ditem//.down} host=${ditem%%~*} item=${ditem#*~}; item=${item/.repl/} - # echo "HERE: ${ditem} - ${host} - ${item}" + echo "HERE: ${ditem} - ${host} - ${item}" if [[ ${ditem} == *"~"* ]] && [[ ${ditem} == *".repl"* ]] && [ "${NM_REPL_DESC[${item}]}" != "" ]; then itemname=${NM_REPL_DESC[${item}]} @@ -976,9 +976,9 @@ DOWNLIST(){ fi [ "${choice^^}" == "E" ] && break - echo -e "\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+3" | bc)A" - for (( c=1; c<$(echo "scale=1; (${#DOWNLIST[@]}*2)+3" | bc); c++ )); do echo -e "\033[K"; done - echo -e "\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+3" | bc)A" + echo -e "\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)*2+3" | bc)A" + for (( c=1; c<$(echo "scale=1; (${#DOWNLIST[@]}*2)*2+3" | bc); c++ )); do echo -e "\033[K"; done + echo -e "\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)*2+3" | bc)A" done echo