Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use setlocal/endlocal in cmd files.

  • Loading branch information...
commit 126c6d8b7cc48521cb728dbf5aac7f75e26c7a28 1 parent 6b15b5e
@jgoz authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  build.cmd
  2. +3 −0  deps.cmd
View
3  build.cmd
@@ -1,7 +1,10 @@
@echo off
+setlocal
set PACKAGE_DIR=lib\packages
if not exist %PACKAGE_DIR% call deps.cmd
%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\msbuild build.proj /target:Build /Property:Configuration=Debug
+
+endlocal
if errorlevel 1 pause else exit
View
3  deps.cmd
@@ -1,4 +1,6 @@
@echo off
+setlocal
+
set NUGET_EXE=bin\nuget\nuget.exe
set NUGET_BOOTSTRAPPER_EXE=bin\nuget\nuget-bootstrap.exe
set PACKAGE_DIR=lib\packages
@@ -17,4 +19,5 @@ for /F %%C in ('dir /b /s packages.config') do %NUGET_EXE% install %%C -o %PACKA
:update
for /F %%C in ('dir /b /s packages.config') do %NUGET_EXE% update %%C -RepositoryPath %PACKAGE_DIR%
+endlocal
if errorlevel 1 pause else exit
Please sign in to comment.
Something went wrong with that request. Please try again.