Innovenergy_trunk/frontend/node_modules/getos/logic/amazon.js

8 lines
217 B
JavaScript

var releaseRegex = /release (.*)/
module.exports = function amazonCustomLogic (os, file, cb) {
var release = file.match(releaseRegex)
if (release && release.length === 2) os.release = release[1]
cb(null, os)
}