From b141e80de76b4f50c6318eeeb558a7f92475daf5 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Fri, 6 Dec 2019 15:27:30 +0100 Subject: [PATCH] Fix coredistools lookup for users with spaces in usernames (#607) Locating the downloaded coredistools.dll fails for users that have spaces in their names (their home directory has spaces in the path). This change fixes the problem by adding quotes to the locating command. --- src/coreclr/tests/setup-stress-dependencies.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tests/setup-stress-dependencies.cmd b/src/coreclr/tests/setup-stress-dependencies.cmd index 09a6119..c6c9ed1 100644 --- a/src/coreclr/tests/setup-stress-dependencies.cmd +++ b/src/coreclr/tests/setup-stress-dependencies.cmd @@ -90,7 +90,7 @@ set /p __PkgDir=<"%CoreDisToolsPackagePathOutputFile%" REM Get downloaded dll path echo Locating coredistools.dll -FOR /F "delims=" %%i IN ('dir %__PkgDir%\coredistools.dll /b/s ^| findstr /R "win-%__Arch%"') DO set __LibPath=%%i +FOR /F "delims=" %%i IN ('dir "%__PkgDir%\coredistools.dll" /b/s ^| findstr /R "win-%__Arch%"') DO set __LibPath=%%i echo CoreDisTools library path: %__LibPath% if not exist "%__LibPath%" ( echo Failed to locate the downloaded library: %__LibPath% -- 2.7.4