When version contains 'x' use &latest=overall

This commit is contained in:
Gerrit Grunwald 2021-03-15 14:36:05 +01:00
parent b101cc1ed2
commit d3c44ebddc
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -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, {

View file

@ -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';
}