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