Skip to content

Instantly share code, notes, and snippets.

@viktorkelemen
Created December 23, 2011 08:17
Show Gist options
  • Save viktorkelemen/1513563 to your computer and use it in GitHub Desktop.
Save viktorkelemen/1513563 to your computer and use it in GitHub Desktop.
Bash script can tell its location
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