From 5a716b4bacc312edbd4c3b69facfd5a5504683de Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 25 Apr 2019 14:01:12 +0200 Subject: build: %errorlevel% doesn't seem to be set after curl and go calls Signed-off-by: Simon Rozman --- build.bat | 4 ++-- 1 file 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 -- cgit v1.2.3-59-g8ed1b