Created
February 28, 2012 03:22
-
-
Save tadasv/1929170 to your computer and use it in GitHub Desktop.
Get directory of the currently executing script
This file contains hidden or 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
# Get dir of the script | |
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