Skip to content

Instantly share code, notes, and snippets.

@evansd
Last active May 27, 2016 10:43
Show Gist options
  • Save evansd/6111517 to your computer and use it in GitHub Desktop.
Save evansd/6111517 to your computer and use it in GitHub Desktop.
# Get the directory of the current script
script_dir="$( unset CDPATH && cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment