Created
January 12, 2016 09:23
-
-
Save piaoger/5636426ea05c9529d4e0 to your computer and use it in GitHub Desktop.
get location 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
this_script=$(cd ${0%/*} && echo $PWD/${0##*/}) | |
this_dir=$(cd ${0%/*} && echo $PWD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment