Created
December 27, 2016 13:29
-
-
Save delputnam/bb99180cec60910a4a4e392748387ada to your computer and use it in GitHub Desktop.
Get directory of bash 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
pushd `dirname $0` > /dev/null | |
SCRIPT_DIR=`pwd` | |
popd > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment