I am trying to get this to work:
echo "Would you like to configure dns?"
select yn in "Yes" "No"; do
case $yn in
Yes ) echo "you have selected to configure dns"; break;;
No ) exit; break;;
esac
done
I keep getting this error:
menu.sh: 2: select: not found
menu.sh: 7: Syntax error: “done” unexpected
Thanks in Advance,
joe
Make sure you are running it in
bashasselectis understood bybashand not by some shells likesh.