Skip to content

Instantly share code, notes, and snippets.

@daemonza
Created March 11, 2014 11:01
Show Gist options
  • Save daemonza/9483654 to your computer and use it in GitHub Desktop.
Save daemonza/9483654 to your computer and use it in GitHub Desktop.
#!/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