From e50d52003ba527010c68110022832ea25cb00874 Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Wed, 25 Mar 2020 15:09:29 +0100 Subject: [PATCH] Fix created vs replaced/merge message --- src/cli/tasks/extract.task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/tasks/extract.task.ts b/src/cli/tasks/extract.task.ts index 4bc2ef7..20a8a8a 100644 --- a/src/cli/tasks/extract.task.ts +++ b/src/cli/tasks/extract.task.ts @@ -73,7 +73,7 @@ export class ExtractTask implements TaskInterface { // Save try { let event = 'CREATED'; - if (!fs.existsSync(outputPath)) { + if (fs.existsSync(outputPath)) { this.options.replace ? event = 'REPLACED' : event = 'MERGED'; } this.save(outputPath, final);