From 676fc8a055b7bee5faa7023a95cd91547004ad5c Mon Sep 17 00:00:00 2001 From: jeffrey Date: Mon, 20 Jul 2020 10:19:37 -0400 Subject: [PATCH] dbl quotes around variable so CD works if path contains spaces (#602) --- src/Misc/layoutroot/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Misc/layoutroot/config.sh b/src/Misc/layoutroot/config.sh index 116024596..2d627a76a 100755 --- a/src/Misc/layoutroot/config.sh +++ b/src/Misc/layoutroot/config.sh @@ -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