From d3c44ebddcb834b26aff1c333c19221353f67bc2 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Mon, 15 Mar 2021 14:36:05 +0100 Subject: [PATCH] When version contains 'x' use &latest=overall --- dist/setup/index.js | 2 +- src/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 04386175..edac7083 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -33725,7 +33725,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') { url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.endsWith('x') || version.includes('ea')) { + if (version.includes('x') || version.includes('ea')) { url += '&latest=overall'; } const http = new httpm.HttpClient('bundles', undefined, { diff --git a/src/installer.ts b/src/installer.ts index 7a50ab73..91366b84 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -254,7 +254,7 @@ async function getDownloadInfo( url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.endsWith('x') || version.includes('ea')) { + if (version.includes('x') || version.includes('ea')) { url += '&latest=overall'; }