Created
March 11, 2014 03:21
-
-
Save kevonc/9478886 to your computer and use it in GitHub Desktop.
bash script to find parent dir path
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
PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE}" )/.." && pwd )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is assuming the file is in a dir of the project, ex: project_dir/script/this_file