Created
May 9, 2013 11:33
-
-
Save elentok/5546958 to your computer and use it in GitHub Desktop.
Current script directory (works in bash and zsh)
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
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}` | |
SCRIPT_DIR=`cd $SCRIPT_DIR && pwd` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment