Skip to content

Commit 9034d4f

Browse files
committed
Fix obtaining the firehose file while flashing the config file
1 parent 5179218 commit 9034d4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/flash.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ module.exports = class FlashCommand extends CLICommandBase {
215215

216216
async _getFirehoseFileFromZip(zipPath) {
217217
const dir = await unzip.Open.file(zipPath);
218-
const firehoseFile = dir.files.find(file => file.path.includes('firehose'));
218+
const { filesToProgram } = await this._extractFlashFilesFromZip(zipPath);
219+
const firehoseFile = dir.files.find(file => file.path.endsWith(filesToProgram[0]));
219220
if (!firehoseFile) {
220221
throw new Error('Unable to find firehose file');
221222
}

0 commit comments

Comments
 (0)