Created
December 10, 2015 08:01
-
-
Save jclosure/0dc01a9486f58efa4903 to your computer and use it in GitHub Desktop.
3 fingered claw - sourcible bash execution harness
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
# usage: | |
# | |
# . 3_fingered_claw.sh | |
# try command1 | |
# try command2 | |
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