From 593538f2d2072b7287e00a9b7216f5e5687a8e4f Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Thu, 8 Jan 2015 22:53:49 +0000 Subject: [PATCH] Update firmware flasher to ignore non-matching release files. --- tabs/firmware_flasher.js | 3 +++ 1 file changed, 3 insertions(+) mode change 100755 => 100644 tabs/firmware_flasher.js diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js old mode 100755 new mode 100644 index f2bb2e16..cfe34d1f --- a/tabs/firmware_flasher.js +++ b/tabs/firmware_flasher.js @@ -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];