diff --git a/src/frontend/source.ts b/src/frontend/source.ts index d6c4665..422b853 100644 --- a/src/frontend/source.ts +++ b/src/frontend/source.ts @@ -186,11 +186,11 @@ class SourceResolver { return await this.wrapLeafFile(imagesZip, factoryPath || src) } - let factoryPath = (await fs.readdir(src)) + let newFactoryPath = (await fs.readdir(src)) .find(f => f.startsWith(`${this.device}-${this.buildId}-factory-`)) - if (factoryPath != undefined) { + if (newFactoryPath != undefined) { // Factory images zip - return await this.wrapLeafFile(`${src}/${factoryPath}`, factoryPath) + return await this.wrapLeafFile(`${src}/${newFactoryPath}`, newFactoryPath) } }