Created
February 27, 2014 16:31
-
-
Save jim80net/9253601 to your computer and use it in GitHub Desktop.
BINDIR for bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
from: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment