Fix created vs replaced/merge message

This commit is contained in:
Kim Biesbjerg 2020-03-25 15:09:29 +01:00
parent cb8731ee0f
commit e50d52003b

View File

@ -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);