Merge pull request #4241 from hvitved/csharp/autobuild-cmd-exit-code

C#: Correctly propagate exit code in `autobuild.cmd`
This commit is contained in:
Tom Hvitved
2020-09-10 12:43:43 +02:00
committed by GitHub
2 changed files with 3 additions and 7 deletions

View File

@@ -1,9 +1,7 @@
@echo off
SETLOCAL EnableDelayedExpansion
rem The autobuilder is already being traced
set CODEQL_AUTOBUILDER_CSHARP_NO_INDEXING=true
type NUL && "%CODEQL_EXTRACTOR_CSHARP_ROOT%/tools/%CODEQL_PLATFORM%/Semmle.Autobuild.CSharp.exe" || exit /b %ERRORLEVEL%
ENDLOCAL
type NUL && "%CODEQL_EXTRACTOR_CSHARP_ROOT%/tools/%CODEQL_PLATFORM%/Semmle.Autobuild.CSharp.exe"
exit /b %ERRORLEVEL%

View File

@@ -1,5 +1,4 @@
@echo off
SETLOCAL EnableDelayedExpansion
type NUL && "%CODEQL_DIST%\codeql" database index-files ^
--include-extension=.config ^
@@ -10,5 +9,4 @@ type NUL && "%CODEQL_DIST%\codeql" database index-files ^
--language xml ^
-- ^
"%CODEQL_EXTRACTOR_CSHARP_WIP_DATABASE%"
ENDLOCAL
exit /b %ERRORLEVEL%