Created
May 3, 2015 12:47
-
-
Save puffrfish/721b9b830d7c5a555bd8 to your computer and use it in GitHub Desktop.
[ likes =
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 | |
bird="finch" | |
result="honk" | |
if [ ${bird} = "duck" ]; then | |
result="quack"; | |
elif [ ${bird} = "goose" ]; then | |
result="honk"; | |
fi | |
echo "$bird says $result" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment