Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
petermz authored and fniephaus committed Mar 18, 2024
1 parent 30261a8 commit a19f51d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/liberica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ export async function findLibericaURL(
}
}
throw new Error(
`Unable to find asset for java-version: ${javaVersion}, java-package: ${javaPackage}, platform: ${platform}`
`Unable to find asset for java-version: ${javaVersion}, java-package: ${javaPackage}, platform: ${platform}. ${c.ERROR_REQUEST}`
)
}

function determineToolName(javaVersion: string, javaPackage: string) {
const variant = determineVariantPart(javaPackage)
const platform = determinePlatformPart()
return `${LIBERICA_VM_PREFIX}${variant}openjdk${javaVersion}-${platform}`
return `${LIBERICA_VM_PREFIX}${variant}${platform}`
}

function determineVariantPart(javaPackage: string) {
Expand All @@ -107,7 +107,7 @@ function determinePlatformPart() {
function isMuslBasedLinux() {
if (c.IS_LINUX) {
const output = spawnSync('ldd', ['--version']).stderr.toString('utf8')
if (output.indexOf('musl') > -1) {
if (output.includes('musl')) {
return true
}
}
Expand Down

0 comments on commit a19f51d

Please sign in to comment.