Skip to content

Instantly share code, notes, and snippets.

@dylansmith
Created October 27, 2015 08:07
Show Gist options
  • Save dylansmith/1e398ed1ab92bc0d250e to your computer and use it in GitHub Desktop.
Save dylansmith/1e398ed1ab92bc0d250e to your computer and use it in GitHub Desktop.
Get directory of current bash script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment