Created
August 1, 2011 08:52
-
-
Save morganp/1117817 to your computer and use it in GitHub Desktop.
Bash get base dir of 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
BaseDir=$(dirname $(which ${0})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment