From bdb6cff684a6b451f73216acd43cc4ee6b387724 Mon Sep 17 00:00:00 2001 From: anandhu-eng Date: Wed, 23 Apr 2025 10:25:53 +0530 Subject: [PATCH] fix command generation --- script/pull-git-repo/run.bat | 2 +- script/pull-git-repo/run.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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}