Skip to content

Instantly share code, notes, and snippets.

@greylurk
Last active December 4, 2017 12:04
Show Gist options
  • Save greylurk/db3f9a1f481e135b2c4703abea41f673 to your computer and use it in GitHub Desktop.
Save greylurk/db3f9a1f481e135b2c4703abea41f673 to your computer and use it in GitHub Desktop.
#!/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