Created
October 8, 2015 10:17
-
-
Save echohn/e25adc3569f32b1dab30 to your computer and use it in GitHub Desktop.
get dir of script(shell)
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
dir_of_script=$(cd "$(dirname "$0")"; pwd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment