aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-04-25 14:01:12 +0200
committerSimon Rozman <simon@rozman.si>2019-04-25 14:01:12 +0200
commit5a716b4bacc312edbd4c3b69facfd5a5504683de (patch)
treed1bb344b13069ea565e3ed28d047827115dde3d8
parentringlogger: ensure that int64 in member is 64-bit aligned on 32-bit machines (diff)
downloadwireguard-windows-5a716b4bacc312edbd4c3b69facfd5a5504683de.tar.xz
wireguard-windows-5a716b4bacc312edbd4c3b69facfd5a5504683de.zip
build: %errorlevel% doesn't seem to be set after curl and go calls
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r--build.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.bat b/build.bat
index 020709b3..74cff497 100644
--- a/build.bat
+++ b/build.bat
@@ -57,7 +57,7 @@ if exist .deps\prepared goto :build
:download
echo [+] Downloading %1
- curl -#fLo %1 %2 || exit /b %errorlevel%
+ curl -#fLo %1 %2 || exit /b 1
echo [+] Verifying %1
for /f %%a in ('CertUtil -hashfile %1 SHA256 ^| findstr /r "^[0-9a-f]*$"') do if not "%%a"=="%~3" exit /b 1
goto :eof
@@ -71,6 +71,6 @@ if exist .deps\prepared goto :build
echo [+] Assembling resources %1
windres.exe -i resources.rc -o resources.syso -O coff || exit /b %errorlevel%
echo [+] Building program %1
- go build -ldflags="-H windowsgui -s -w" -v -o "%~1\wireguard.exe" || exit /b %errorlevel%
+ go build -ldflags="-H windowsgui -s -w" -v -o "%~1\wireguard.exe" || exit /b 1
set PATH=%OLDPATH2%
goto :eof