Skip to content

Instantly share code, notes, and snippets.

@aolle
Created August 19, 2016 15:56
Show Gist options
  • Select an option

  • Save aolle/f89a94f2e2acb932849de655c118876c to your computer and use it in GitHub Desktop.

Select an option

Save aolle/f89a94f2e2acb932849de655c118876c to your computer and use it in GitHub Desktop.
warn () {
echo "$0:" "$@" >&2
}
die () {
rc=$1
shift
warn "$@"
exit $rc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment