Skip to content

Commit 1b1206c

Browse files
authored
Merge pull request #379 from anandhu-eng/path-str-fix
Fix command generation
2 parents e1a9051 + bdb6cff commit 1b1206c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

script/pull-git-repo/run.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set "SCRIPT_DIR=%MLC_TMP_CURRENT_SCRIPT_PATH%"
77

88
REM Change to the specified path
99
set "path=%MLC_GIT_CHECKOUT_PATH%"
10-
echo cd %path%
10+
echo cd "%path%"
1111

1212
cd /d "%path%"
1313
if errorlevel 1 (

script/pull-git-repo/run.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
CUR_DIR=$PWD
44
SCRIPT_DIR=${MLC_TMP_CURRENT_SCRIPT_PATH}
55

6-
path=${MLC_GIT_CHECKOUT_PATH}
7-
echo "cd $path"
6+
path="${MLC_GIT_CHECKOUT_PATH}"
7+
echo "cd \"$path\""
88

9-
cd $path
9+
cd "$path"
1010
test $? -eq 0 || exit $?
1111

1212
echo ${MLC_GIT_PULL_CMD}

0 commit comments

Comments
 (0)