Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created March 18, 2013 20:01
Show Gist options
  • Select an option

  • Save jhsu/5190327 to your computer and use it in GitHub Desktop.

Select an option

Save jhsu/5190327 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
say "Did you run test?"
while true; do
read -p "Do your run tests? [yn]" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit 1;;
* ) echo "Please answer yes or no.";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment