Created
June 7, 2015 18:47
-
-
Save oskosk/ff6d75e423a554701e44 to your computer and use it in GitHub Desktop.
Shell - Three-Fingered Claw technique
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
| # include these first in your scripts | |
| yell() { echo "$0: $*" >&2; } | |
| die() { yell "$*"; exit 111; } | |
| try() { "$@" || die "cannot $*"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to 'exit 0' or 'true' at the end,
https://gist.github.com/dotike/8257326