We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5179218 commit 9034d4fCopy full SHA for 9034d4f
src/cmd/flash.js
@@ -215,7 +215,8 @@ module.exports = class FlashCommand extends CLICommandBase {
215
216
async _getFirehoseFileFromZip(zipPath) {
217
const dir = await unzip.Open.file(zipPath);
218
- const firehoseFile = dir.files.find(file => file.path.includes('firehose'));
+ const { filesToProgram } = await this._extractFlashFilesFromZip(zipPath);
219
+ const firehoseFile = dir.files.find(file => file.path.endsWith(filesToProgram[0]));
220
if (!firehoseFile) {
221
throw new Error('Unable to find firehose file');
222
}
0 commit comments