dbl quotes around variable so CD works if path contains spaces (#602)

This commit is contained in:
jeffrey
2020-07-20 10:19:37 -04:00
committed by TingluoHuang
parent 8c9510f9c3
commit 676fc8a055

View File

@@ -67,7 +67,7 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
cd $DIR
cd "$DIR"
source ./env.sh