mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
ref(shellcheck): remove superfluous target matching
This commit is contained in:
@@ -6,27 +6,6 @@ var repo = 'shellcheck';
|
||||
|
||||
module.exports = function (request) {
|
||||
return github(request, owner, repo).then(function (all) {
|
||||
all.releases = all.releases.filter(function (rel) {
|
||||
// don't include meta versions as actual versions
|
||||
if (
|
||||
['latest', 'stable'].includes(rel.version) ||
|
||||
'v' !== rel.version[0]
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
all.releases.forEach(function (rel) {
|
||||
// if there is no os or arch or source designation, and it's a .zip, it's Windows amd64
|
||||
if (
|
||||
!/(darwin|mac|linux|x86_64|arm|src|source)/i.test(rel.name) &&
|
||||
/\.zip$/.test(rel.name)
|
||||
) {
|
||||
rel.os = 'windows';
|
||||
rel.arch = 'amd64';
|
||||
}
|
||||
});
|
||||
return all;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user