Created
March 30, 2014 10:07
-
-
Save jeremiahmarks/9870542 to your computer and use it in GitHub Desktop.
bash confirmation
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
read -p "do you want to continue?" -n 1 -r | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
#do whatever you are checking on | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment