Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-09 10:01:50 -06:00
parent 57f7508efc
commit f93b567fde

View File

@@ -783,21 +783,10 @@ DOWNLIST(){
[ "${choice^^}" == "E" ] && break
mrow="\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc)A"
echo -e "${mrow}"
for (( c=1; c<$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc); c++ )); do
# echo "HERE1: $c"
echo -e "\033[K";
done
# for (( c=1; c<${#DOWNLIST[@]}; c++ )); do
# echo -e "\033[K";
# done
# for (( c=0; c<${#DOWNLIST[@]}; c++ )); do
# echo -e "\033[1A";
# done
echo -e "${mrow}"
# mrow="\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc)A"
echo -e "\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc)A"
for (( c=1; c<$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc); c++ )); do echo -e "\033[K"; done
echo -e "\033[$(echo "scale=1; (${#DOWNLIST[@]}*2)+2" | bc)A"
# echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "${mrow}"