From 01f76e677fc56718b50945fd5063e72a8979598b Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Tue, 7 Dec 2021 03:59:29 +0100 Subject: [PATCH] fix(app/action): fix output `none` (#704) --- source/app/action/index.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index a43e4ef7..1a9ac79f 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -353,10 +353,11 @@ async function wait(seconds) { await fs.mkdir(paths.dirname(paths.join("/renders", filename)), {recursive:true}) await fs.writeFile(paths.join("/renders", filename), Buffer.from(typeof rendered === "object" ? JSON.stringify(rendered) : `${rendered}`)) info(`Save to /metrics_renders/${filename}`, "ok") + info("Output action", _action) } //No output action apart from file on runner - if (_output === "none") { + if (_action === "none") { info.break() console.log("Success, thanks for using metrics!") process.exit(0)