Last active
February 9, 2016 15:40
-
-
Save beng/29d4905752d7355ea466 to your computer and use it in GitHub Desktop.
Credit for this script goes to Isaac (.ike) Levy [email protected]
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
############################################################################# | |
# Credit for this script goes to Isaac (.ike) Levy [email protected] # | |
############################################################################# | |
#!/bin/sh | |
yell() { echo "$0: $*" >&2; } | |
die() { yell "$*"; exit 111; } | |
try() { "$@" || die "cannot $*"; } | |
# using it | |
try cd /some/place | |
try tar xzvfp /another/place/stuff.tbz | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment