Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Created September 13, 2010 15:17
Show Gist options
  • Save stpettersens/577447 to your computer and use it in GitHub Desktop.
Save stpettersens/577447 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "y/n?"
read yesno
if [[ $yesno -eq "y" ]]; then
echo "You said yes :)"
else
if [[ $yesno -eq "n" ]]; then
echo "You said no :("
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment