Skip to content

Instantly share code, notes, and snippets.

@tadasv
Created February 28, 2012 03:22
Show Gist options
  • Save tadasv/1929170 to your computer and use it in GitHub Desktop.
Save tadasv/1929170 to your computer and use it in GitHub Desktop.
Get directory of the currently executing script
# Get dir of the script
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment