Hi Danny,
thanks for adding parts of my improvements.
To be shure that you exactly know what I mean I added my idea to your code.
Just replace the relevant parts and you will see what I wanted to say.
# Variables
j=0;
i=0;
MGMT=$(cat $FWDIR/conf/masters | awk 'NR>1 && NR<3 { print $0 }');
INST=$(if hash installed_jumbo_take 2>/dev/null; then echo installed_jumbo_take; fi);
q)
exit 0
;;
esac
echo
case $i in
''|*[!1-9]*) echo "0: MAIN MENU"; echo "q: QUIT";j=$i;;
*) echo "------------------------------------------------"; echo "?: Show actual menu | 0: MAIN MENU | q: QUIT";;
esac
echo
echo -en "Enter a command : "
read i
if [ $i == ? ]; then
i=$j
fi
echo
done
exit 0
I am not a programmer, but it's working
Cheers
Sven