Permalink
Browse files

Use setlocal/endlocal in cmd files.

  • Loading branch information...
1 parent 6b15b5e commit 126c6d8b7cc48521cb728dbf5aac7f75e26c7a28 John Gozde committed Oct 17, 2011
Showing with 6 additions and 0 deletions.
  1. +3 −0 build.cmd
  2. +3 −0 deps.cmd
View
@@ -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
@@ -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

0 comments on commit 126c6d8

Please sign in to comment.