Skip to content

Commit

Permalink
Fix before/afterProcess handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Mar 28, 2016
1 parent 8192da7 commit 7a709c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/blueprint-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7a709c8

Please sign in to comment.