-
-
Save varunagrawal/39a9811f707d7ba35644911d1552bc55 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