get current dir

得到当前脚本的绝对路径

绝对路径

absolute path

Bash
export PROJECT_HOME=$( cd $( dirname "$BASH_SOURCE[0]" ) && pwd )