Created
August 24, 2014 00:12
-
-
Save icecreammatt/200e7b85c73d9d4626fc to your computer and use it in GitHub Desktop.
Example on how to default prompt questions
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
| echo "Check for updates? [Y/n] \c" | |
| read CHECK_FOR_UPDATE | |
| case "$CHECK_FOR_UPDATE" in | |
| (N|n) echo "Skipping" ;; | |
| *) echo "installing" ;; | |
| esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment