From cd5f440dc1dca3d5aff7f561f8b68a213246ea78 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 30 May 2025 17:43:08 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b8cd1ba7..e7c26d8d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -976,9 +976,9 @@ DOWNLIST(){ fi [ "${choice^^}" == "E" ] && break - 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" + 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