Created
March 18, 2013 20:01
-
-
Save jhsu/5190327 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/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