From 4a21346ef3b17f86c1878ea9df41268ae3c9ec3d Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 8 Aug 2015 11:09:08 +0100 Subject: scripts: Always perform setlocal and endlocal calls in pairs Ensure that there isn't a mismatch between setlocal and endlocal calls, which could have happened due to setlocal being called after certain error conditions were checked for. --- buildconf.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'buildconf.bat') diff --git a/buildconf.bat b/buildconf.bat index b5f68d6d7..25f1928bf 100644 --- a/buildconf.bat +++ b/buildconf.bat @@ -30,16 +30,16 @@ rem This file is not included or required for curl's release archives or daily rem snapshot archives. :begin + rem Set our variables + setlocal + set MODE=GENERATE + rem Switch to this batch file's directory cd /d "%~0\.." 1>NUL 2>&1 rem Check we are running from a curl git repository if not exist GIT-INFO goto norepo - rem Set our variables - setlocal - set MODE=GENERATE - :parseArgs if "%~1" == "" goto start -- cgit v1.2.3