Skip to content

Commit a9f322e

Browse files
authored
Merge pull request #4241 from hvitved/csharp/autobuild-cmd-exit-code
C#: Correctly propagate exit code in `autobuild.cmd`
2 parents 2a3d007 + 9629f1c commit a9f322e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
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+
exit /b %ERRORLEVEL%

csharp/tools/pre-finalize.cmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@echo off
2-
SETLOCAL EnableDelayedExpansion
32

43
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
54
--include-extension=.config ^
@@ -10,5 +9,4 @@ type NUL && "%CODEQL_DIST%\codeql" database index-files ^
109
--language xml ^
1110
-- ^
1211
"%CODEQL_EXTRACTOR_CSHARP_WIP_DATABASE%"
13-
14-
ENDLOCAL
12+
exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)