Skip to content

Commit

Permalink
fix incorrect task match no-task-defined cases
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed May 12, 2023
1 parent 2ffd159 commit b3f8ff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/spot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ func run(opts options) error {
}

// run all tasks
for _, taskName := range conf.Tasks {
for _, targetName := range targetsForTask(opts, opts.TaskName, conf) {
if err := runTaskForTarget(ctx, r, taskName.Name, targetName); err != nil {
for _, task := range conf.Tasks {
for _, targetName := range targetsForTask(opts, task.Name, conf) {
if err := runTaskForTarget(ctx, r, task.Name, targetName); err != nil {
return err
}
}
Expand Down

0 comments on commit b3f8ff5

Please sign in to comment.