Skip to content

Instantly share code, notes, and snippets.

@jhamfler
Last active February 16, 2021 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhamfler/65d07867f9d7ea4f70fee630fb2a5a47 to your computer and use it in GitHub Desktop.
Save jhamfler/65d07867f9d7ea4f70fee630fb2a5a47 to your computer and use it in GitHub Desktop.
# get path of script
scriptpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# pass exit status to parent shell if anything fails
set -eEo pipefail
shopt -s inherit_errexit >/dev/null 2>&1 || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment