Skip to content

Instantly share code, notes, and snippets.

@sund
Created September 12, 2013 17:31
Show Gist options
  • Save sund/6541126 to your computer and use it in GitHub Desktop.
Save sund/6541126 to your computer and use it in GitHub Desktop.
bash scripting helps
## determine what directory a script lives in
```bash
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