collect-state: fix the output file name format
This commit is contained in:
parent
e2d0305460
commit
a306cd2272
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue