Skip to content

Commit

Permalink
fix: do not choke on empty string for skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Jan 7, 2025
1 parent b15016e commit 5c965ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,19 @@ func main() {
return os.WriteFile(configFile, out, 0644)
}

// split the tasks on comma, but don't end up with a single entry of ""
split := strings.Split(tasksToSkip, ",")
if len(split) == 1 && split[0] == "" {
split = []string{}
}

return internal.RunSubgraph(
ctx,
cancel,
log.Default(),
wf,
taskNames,
strings.Split(tasksToSkip, ","))
split)
}()

if err != nil {
Expand Down

0 comments on commit 5c965ff

Please sign in to comment.