Created
March 11, 2014 11:01
-
-
Save daemonza/9483654 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
function one { | |
if [ $1 == "test" ]; then | |
return 0 | |
else | |
return 1 | |
fi | |
} | |
if one "test" ; then | |
echo "match" | |
else | |
echo "return was 1" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment