Last active
February 16, 2021 10:57
-
-
Save jhamfler/65d07867f9d7ea4f70fee630fb2a5a47 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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