diff --git a/script/pull-git-repo/run.bat b/script/pull-git-repo/run.bat index 830588501..30de3de31 100644 --- a/script/pull-git-repo/run.bat +++ b/script/pull-git-repo/run.bat @@ -7,7 +7,7 @@ set "SCRIPT_DIR=%MLC_TMP_CURRENT_SCRIPT_PATH%" REM Change to the specified path set "path=%MLC_GIT_CHECKOUT_PATH%" -echo cd %path% +echo cd "%path%" cd /d "%path%" if errorlevel 1 ( diff --git a/script/pull-git-repo/run.sh b/script/pull-git-repo/run.sh index c75f5b45d..1fd5f82d8 100644 --- a/script/pull-git-repo/run.sh +++ b/script/pull-git-repo/run.sh @@ -3,10 +3,10 @@ CUR_DIR=$PWD SCRIPT_DIR=${MLC_TMP_CURRENT_SCRIPT_PATH} -path=${MLC_GIT_CHECKOUT_PATH} -echo "cd $path" +path="${MLC_GIT_CHECKOUT_PATH}" +echo "cd \"$path\"" -cd $path +cd "$path" test $? -eq 0 || exit $? echo ${MLC_GIT_PULL_CMD}