Fix 'disableJavaCheck' not always being checked

This commit is contained in:
Christian Koop 2020-11-01 03:11:53 +01:00
parent 2a34829b7e
commit 59bfa35172
No known key found for this signature in database
GPG Key ID: DECCA4CEE0E46D6D
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,7 @@ async function run(): Promise<{ code: number, msg?: string }> {
try {
await core.group('Prepare BuildTools', async (): Promise<void> => {
return runCmd('java', ['-jar', 'BuildTools.jar', '--compile', 'NONE'],
return runCmd('java', ['-jar', 'BuildTools.jar', '--compile', 'NONE', (disableJavaCheck ? '--disable-java-check' : '')],
workingDir.cache, appLogFile);
});
} catch (err) {