From a306cd2272f69b4ba3e4a69624d86dbe817b3a68 Mon Sep 17 00:00:00 2001 From: Dmitry Muhomor Date: Wed, 4 Oct 2023 15:17:54 +0300 Subject: [PATCH] collect-state: fix the output file name format --- src/commands/collect-state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/collect-state.ts b/src/commands/collect-state.ts index 3db1c08..8b7769c 100644 --- a/src/commands/collect-state.ts +++ b/src/commands/collect-state.ts @@ -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,