Created
August 6, 2015 15:33
-
-
Save Rumbles/b5a7eaf8a67c9de18223 to your computer and use it in GitHub Desktop.
read breaks when $description has a space in the string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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