b476439890bf2709c95c2dda44e202ab23c70d52
3 # Desc: Prompts user until valid answer given.
5 while ! [ "$prompt_status" = "answered" ]; do
6 echo "Perform action? (y/n):" 1>&2;
10 echo -e "Doing stuff.";
11 prompt_status
="answered";
14 echo "Doing nothing.";
15 prompt_status
="answered";
18 echo "WARNING:Invalid option $prompt"