Skip to content

Commit

Permalink
Fix obtaining the firehose file while flashing the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Feb 4, 2025
1 parent 5179218 commit 9034d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ module.exports = class FlashCommand extends CLICommandBase {

async _getFirehoseFileFromZip(zipPath) {
const dir = await unzip.Open.file(zipPath);
const firehoseFile = dir.files.find(file => file.path.includes('firehose'));
const { filesToProgram } = await this._extractFlashFilesFromZip(zipPath);
const firehoseFile = dir.files.find(file => file.path.endsWith(filesToProgram[0]));
if (!firehoseFile) {
throw new Error('Unable to find firehose file');
}
Expand Down

0 comments on commit 9034d4f

Please sign in to comment.