Use -version on JDK 8. Fixes #86

This commit is contained in:
Fabio Niephaus
2024-02-23 08:22:08 +01:00
parent e878075a91
commit 5393c3d809
3 changed files with 10 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ async function run(): Promise<void> {
core.startGroup(`Successfully set up '${basename(graalVMHome)}'`)
await exec(join(graalVMHome, 'bin', `java${c.EXECUTABLE_SUFFIX}`), [
'--version'
javaVersion.startsWith('8') ? '-version' : '--version'
])
core.endGroup()
} catch (error) {