From 57f7508efcc76682dfcb1207c7730e8e595b0af7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 9 Nov 2023 10:00:35 -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 0dd10410..999a665a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -783,10 +783,10 @@ DOWNLIST(){ [ "${choice^^}" == "E" ] && break - mrow="\033[$(echo "scale=1; ${#DOWNLIST[@]}*2" | bc)A" + mrow="\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc)A" echo -e "${mrow}" - for (( c=1; c<$(echo "scale=1; ${#DOWNLIST[@]}*2" | bc); c++ )); do + for (( c=1; c<$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc); c++ )); do # echo "HERE1: $c" echo -e "\033[K"; done