Skip to content

Instantly share code, notes, and snippets.

@rkennesson
Last active April 18, 2019 19:51
Show Gist options
  • Save rkennesson/d4ac4b472e8cbf22c5000d74787c4539 to your computer and use it in GitHub Desktop.
Save rkennesson/d4ac4b472e8cbf22c5000d74787c4539 to your computer and use it in GitHub Desktop.
err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
}
# if ! do_something; then
# err "Unable to do_something"
# exit "${E_DID_NOTHING}"
# fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment