mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-20 08:56:48 +00:00
bugfix(zoxide): detect armv6 downloads correctly
This commit is contained in:
@@ -6,6 +6,11 @@ var repo = 'zoxide';
|
||||
|
||||
module.exports = function (request) {
|
||||
return github(request, owner, repo).then(function (all) {
|
||||
all.releases.forEach(function (rel) {
|
||||
if (/-arm-/.test(rel.download)) {
|
||||
rel.arch = 'armv6l';
|
||||
}
|
||||
});
|
||||
return all;
|
||||
});
|
||||
};
|
||||
@@ -14,7 +19,7 @@ if (module === require.main) {
|
||||
module.exports(require('@root/request')).then(function (all) {
|
||||
all = require('../_webi/normalize.js')(all);
|
||||
// just select the first 5 for demonstration
|
||||
all.releases = all.releases.slice(0, 5);
|
||||
all.releases = all.releases.slice(0, 10);
|
||||
console.info(JSON.stringify(all, null, 2));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user