Skip to content

Commit

Permalink
fix(gulp): check proper hook name
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 28, 2016
1 parent 375ad4b commit e897dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function runWithGulp(argv, taskInstance){
return Q.fcall(taskInstance.run.bind(taskInstance), Cli, argv);
}
).then(function(){
if (gulp.tasks[beforeHook]) {
if (gulp.tasks[afterHook]) {
console.info('\nRunning \'' + afterHook + '\' Gulp task after ' + cmdName);
}
return Q.nfcall(gulp.start.bind(gulp), afterHook);
Expand Down

0 comments on commit e897dac

Please sign in to comment.