Skip to content

Instantly share code, notes, and snippets.

@Rumbles
Created August 6, 2015 15:33
Show Gist options
  • Save Rumbles/b5a7eaf8a67c9de18223 to your computer and use it in GitHub Desktop.
Save Rumbles/b5a7eaf8a67c9de18223 to your computer and use it in GitHub Desktop.
read breaks when $description has a space in the string
while true; do
read -p "Please confirm you are happy with the following: Description \""$description"\", Groupd ID: \""$groupID"\", List ID: \""$listID"\", Phone Number: \""$phone_number"\". Please enter Y/N: " yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit 1;;
* ) echo "Please enter Yes or No";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment