Skip to content

Commit 4cc1e4d

Browse files
committed
C#: Correctly propagate exit code in autobuild.cmd
1 parent c457435 commit 4cc1e4d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

csharp/tools/autobuild.cmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
@echo off
2-
SETLOCAL EnableDelayedExpansion
32

43
rem The autobuilder is already being traced
54
set CODEQL_AUTOBUILDER_CSHARP_NO_INDEXING=true
65

7-
type NUL && "%CODEQL_EXTRACTOR_CSHARP_ROOT%/tools/%CODEQL_PLATFORM%/Semmle.Autobuild.CSharp.exe" || exit /b %ERRORLEVEL%
8-
9-
ENDLOCAL
6+
type NUL && "%CODEQL_EXTRACTOR_CSHARP_ROOT%/tools/%CODEQL_PLATFORM%/Semmle.Autobuild.CSharp.exe"
7+
IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)