Skip to content

Instantly share code, notes, and snippets.

@cngkaygusuz
Last active August 31, 2015 09:59
Show Gist options
  • Save cngkaygusuz/ab2a880e75a208eac58a to your computer and use it in GitHub Desktop.
Save cngkaygusuz/ab2a880e75a208eac58a to your computer and use it in GitHub Desktop.
Get the directory of executed 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