mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
fix(go): filter out typoed beta release
This commit is contained in:
@@ -7,6 +7,17 @@ var archMap = {
|
||||
386: 'x86',
|
||||
};
|
||||
|
||||
let ODDITIES = ['bootstrap', '-arm6.'];
|
||||
|
||||
function isOdd(filename) {
|
||||
for (let oddity of ODDITIES) {
|
||||
let isOddity = filename.includes(oddity);
|
||||
if (isOddity) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getAllReleases(request) {
|
||||
/*
|
||||
{
|
||||
@@ -47,8 +58,8 @@ function getAllReleases(request) {
|
||||
var fileversion = release.version.slice(2);
|
||||
|
||||
release.files.forEach((asset) => {
|
||||
let isArtifact = asset.filename.includes('bootstrap');
|
||||
if (isArtifact) {
|
||||
let odd = isOdd(asset.filename);
|
||||
if (odd) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user