diff --git a/lib/commands/setup.js b/lib/commands/setup.js index d80edb150..dd4830fd8 100644 --- a/lib/commands/setup.js +++ b/lib/commands/setup.js @@ -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();