From c3daa5c8c0bdcebabd088476414bc0d8de5717ce Mon Sep 17 00:00:00 2001 From: Pinpoint Date: Wed, 6 Aug 2014 18:09:26 +0200 Subject: Handle paths containing spaces in build.cmd #99 --- build.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.cmd') diff --git a/build.cmd b/build.cmd index ff2cbdb516..dbec262472 100644 --- a/build.cmd +++ b/build.cmd @@ -2,11 +2,11 @@ cd %~dp0 SETLOCAL -SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe +SET CACHED_NUGET="%LocalAppData%\NuGet\NuGet.exe" IF EXIST %CACHED_NUGET% goto copynuget echo Downloading latest version of NuGet.exe... -IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet +IF NOT EXIST "%LocalAppData%\NuGet" md "%LocalAppData%\NuGet" @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" :copynuget -- cgit v1.2.3