Update firmware flasher to ignore non-matching release files.

10.3.x-maintenance
Dominic Clifton 2015-01-08 22:53:49 +00:00
parent a348b5de8e
commit 593538f2d2
1 changed files with 3 additions and 0 deletions

3
tabs/firmware_flasher.js Executable file → Normal file
View File

@ -43,6 +43,9 @@ TABS.firmware_flasher.initialize = function (callback) {
var asset = assets[assetIndex];
var targetFromFilenameExpression = /.*_(.*)\.(.*)/;
var match = targetFromFilenameExpression.exec(asset.name);
if (!match) {
continue;
}
var target = match[1];
var format = match[2];