From 81a55e90a6b6ce8c9f0c4348862a92053cc67600 Mon Sep 17 00:00:00 2001 From: Andrew Kittredge Date: Tue, 12 Mar 2019 12:05:12 -0400 Subject: [PATCH] handle space in the directory path. --- init-tools.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init-tools.cmd b/init-tools.cmd index 349f7b1461..e40d0c8eff 100644 --- a/init-tools.cmd +++ b/init-tools.cmd @@ -75,7 +75,7 @@ if NOT exist "%DOTNET_LOCAL_PATH%" ( if exist "%BUILD_TOOLS_PATH%" goto :afterbuildtoolsrestore echo Restoring BuildTools version %BUILDTOOLS_VERSION%... echo Running: "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages "%PACKAGES_DIR%" --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> "%INIT_TOOLS_LOG%" -call "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages "%PACKAGES_DIR%" --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> "%INIT_TOOLS_LOG%" +call "%DOTNET_CMD%" restore "%INIT_TOOLS_RESTORE_PROJECT%" --no-cache --packages "%PACKAGES_DIR%" --source "%BUILDTOOLS_SOURCE%" /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir="%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%" if NOT exist "%BUILD_TOOLS_PATH%\init-tools.cmd" ( echo ERROR: Could not restore build tools correctly. 1>&2 goto :error @@ -101,4 +101,4 @@ exit /b 0 :error echo Please check the detailed log that follows. 1>&2 type "%INIT_TOOLS_LOG%" 1>&2 -exit /b 1 \ No newline at end of file +exit /b 1