Skip to content

Commit

Permalink
fix(setup): ensure we only skip tasks that should be skipped
Browse files Browse the repository at this point in the history
no issue
- fix ssl not getting run at all even if it should be
  • Loading branch information
acburdine committed Jul 5, 2017
1 parent 3e54db0 commit caa440e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SetupCommand extends Command {
// TODO: this depends on Listr private API, probably should find a better way
let skipped = stage.dependencies.filter(dep => !taskMap[dep] || taskMap[dep]._task.isSkipped());

if (skipped) {
if (skipped && skipped.length) {
let plural = skipped.length > 1;
this.ui.log(`Task ${stage.name} depends on the '${skipped.join('\', \'')}' ${plural ? 'stages' : 'stage'}, which ${plural ? 'were' : 'was'} skipped.`, 'gray');
return task.skip();
Expand Down

0 comments on commit caa440e

Please sign in to comment.