Created
November 16, 2015 14:15
-
-
Save Serpens/32a5a402230501148ab3 to your computer and use it in GitHub Desktop.
Bash - get script directory.
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 )" # cd & pwd to get full name (not ".") in all cases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment