Last active
December 4, 2017 12:04
-
-
Save greylurk/db3f9a1f481e135b2c4703abea41f673 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set b="N" | |
while [ $b != "Y" ]; do | |
echo "Do thing 2? (Y/N)"; read a | |
if [ "$a" == "N" ]; then | |
echo "Doing Thing 1" | |
else | |
echo "Doing Thing 2" | |
fi | |
set b="$a" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment