From 7a709c8b5211014ce561fb5fcd610b1791bbffa7 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 28 Mar 2016 16:03:50 +0200 Subject: [PATCH] Fix before/afterProcess handling --- lib/helpers/blueprint-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers/blueprint-helper.js b/lib/helpers/blueprint-helper.js index 6fcaffc..3d15330 100644 --- a/lib/helpers/blueprint-helper.js +++ b/lib/helpers/blueprint-helper.js @@ -120,10 +120,10 @@ function processCommand(command, args, options) { options.projectRoot = projectRoot; options.packageName = getPackageName(projectRoot); - if (command === 'generate' && options && options.beforeGenerate || options.afterGenerate) { + if (command === 'generate' && options && (options.beforeGenerate || options.afterGenerate)) { beforeProcess = options.beforeGenerate; afterProcess = options.afterGenerate; - } else if (command === 'destroy' && options && options.beforeDestroy || options.afterDestroy) { + } else if (command === 'destroy' && options && (options.beforeDestroy || options.afterDestroy)) { beforeProcess = options.beforeDestroy; afterProcess = options.afterDestroy; }