From 74c6f8a627860e8b4c9d0540c50fb922017c18b2 Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Tue, 4 Aug 2020 17:19:38 +0100 Subject: [PATCH] os build-config: Fix output file containing 'undefined' word since v12.9.4 Resolves: #1975 Change-type: patch --- lib/actions-oclif/os/build-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actions-oclif/os/build-config.ts b/lib/actions-oclif/os/build-config.ts index 4a042934..2779ab89 100644 --- a/lib/actions-oclif/os/build-config.ts +++ b/lib/actions-oclif/os/build-config.ts @@ -91,7 +91,7 @@ export default class OsBuildConfigCmd extends Command { await writeFile(options.output, JSON.stringify(config, null, 4)); - console.info(`Config file ${params.image} created successfully.`); + console.info(`Config file "${options.output}" created successfully.`); } async buildConfig(image: string, deviceTypeSlug: string, advanced: boolean) { @@ -100,7 +100,7 @@ export default class OsBuildConfigCmd extends Command { const { getManifest } = await import('../../utils/helpers'); const deviceTypeManifest = await getManifest(image, deviceTypeSlug); - await this.buildConfigForDeviceType(deviceTypeManifest, advanced); + return this.buildConfigForDeviceType(deviceTypeManifest, advanced); } async buildConfigForDeviceType(