summaryrefslogtreecommitdiff
path: root/buildconf.bat
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-08 11:09:08 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-08 11:13:21 +0100
commit4a21346ef3b17f86c1878ea9df41268ae3c9ec3d (patch)
treefb7f9123f5db104efd7b33260efef239b3ba05f7 /buildconf.bat
parent4aee1f9cf5c46f56c12181f3c1bcb84466b6789c (diff)
downloadcurl-4a21346ef3b17f86c1878ea9df41268ae3c9ec3d.tar.gz
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.
Diffstat (limited to 'buildconf.bat')
-rw-r--r--buildconf.bat8
1 files changed, 4 insertions, 4 deletions
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