From 5cbbd76411ccfd4d7cef20a194f8595eaaedb8a0 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 30 Sep 2017 12:34:10 -0600 Subject: [PATCH] Updates to oputil when --update with desc/descLong --- core/oputil/oputil_file_base.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/oputil/oputil_file_base.js b/core/oputil/oputil_file_base.js index d9ad9366..0c4c6065 100644 --- a/core/oputil/oputil_file_base.js +++ b/core/oputil/oputil_file_base.js @@ -172,10 +172,10 @@ function scanFileAreaForChanges(areaInfo, options, cb) { // // We'll update the entry if the following conditions are met: // * We have a single duplicate, and: - // * --update-desc was passed or the existing entry's desc or + // * --update was passed or the existing entry's desc or // longDesc are blank/empty // - if(argv['update'] && 1 === dupeEntries.length) { + if(argv.update && 1 === dupeEntries.length) { const FileEntry = require('../../core/file_entry.js'); const existingEntry = new FileEntry(); @@ -200,6 +200,8 @@ function scanFileAreaForChanges(areaInfo, options, cb) { } console.info('Dupe (updating)'); + existingEntry.desc = fileEntry.desc; + existingEntry.descLong = fileEntry.descLong; updateTags(existingEntry); finalizeEntryAndPersist(true, existingEntry, descHandler, err => {