Skip to content

Instantly share code, notes, and snippets.

@ghl3
Created June 27, 2012 17:00
Show Gist options
  • Select an option

  • Save ghl3/3005396 to your computer and use it in GitHub Desktop.

Select an option

Save ghl3/3005396 to your computer and use it in GitHub Desktop.
Directory of a bash script being run
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