Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPinpoint <kevinchalet@gmail.com>2014-08-06 20:09:26 +0400
committerPinpoint <kevinchalet@gmail.com>2014-08-06 20:09:26 +0400
commitc3daa5c8c0bdcebabd088476414bc0d8de5717ce (patch)
tree99caf8139b8b67f3ecdbfb006203122fcd66658f /build.cmd
parentbacfb03a1ed4aca9ef9fc2ee0513144db2b6124a (diff)
Handle paths containing spaces in build.cmd
#99
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd4
1 files changed, 2 insertions, 2 deletions
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