Skip to content

Instantly share code, notes, and snippets.

@leetrout
Created December 27, 2019 22:37
Show Gist options
  • Save leetrout/1ce89fb679fadb1c666bbb169ea574e4 to your computer and use it in GitHub Desktop.
Save leetrout/1ce89fb679fadb1c666bbb169ea574e4 to your computer and use it in GitHub Desktop.
bash script directory
# https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment