collect-state: fix the output file name format

This commit is contained in:
Dmitry Muhomor 2023-10-04 15:17:54 +03:00 committed by Daniel Micay
parent e2d0305460
commit a306cd2272

View file

@ -46,7 +46,7 @@ export default class CollectState extends Command {
let state = await collectSystemState(config.device.name, outRoot, aapt2Path)
// Write
let devicePath = isDir ? `${outPath}/${config}.json` : outPath
let devicePath = isDir ? `${outPath}/${config.device.name}.json` : outPath
await fs.writeFile(devicePath, serializeSystemState(state))
},
c => c.device.name,