Created
July 22, 2016 18:18
-
-
Save kourge/b196c5a7aa2a956531956c9f3de9462e to your computer and use it in GitHub Desktop.
wraps around `test` and echoes "true" or "false" depending on exit status
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
| #!/bin/sh | |
| test "$@" | |
| RESULT=$? | |
| if [[ $RESULT -eq 0 ]]; then | |
| echo true | |
| else | |
| echo false | |
| fi | |
| exit $RESULT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment