diff options
author | Pinpoint <kevinchalet@gmail.com> | 2014-08-06 20:09:26 +0400 |
---|---|---|
committer | Pinpoint <kevinchalet@gmail.com> | 2014-08-06 20:09:26 +0400 |
commit | c3daa5c8c0bdcebabd088476414bc0d8de5717ce (patch) | |
tree | 99caf8139b8b67f3ecdbfb006203122fcd66658f /build.cmd | |
parent | bacfb03a1ed4aca9ef9fc2ee0513144db2b6124a (diff) |
Handle paths containing spaces in build.cmd
#99
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |