Skip to content

Commit

Permalink
Fix start wait group
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed Oct 6, 2022
1 parent 49c30a0 commit 287d69d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ func runService(service utils.Service, cobraCmd *cobra.Command) {
fmt.Println("\nStart commands:")
var startServiceWaitGroup sync.WaitGroup
for _, startCmd := range service.Start {
servicesWaitGroup.Add(1)
startServiceWaitGroup.Add(1)
go func(startCmd string) {
defer startServiceWaitGroup.Done()
err := runServiceCmd(startCmd, service.Path)
if err != nil {
fmt.Println(
Expand Down

0 comments on commit 287d69d

Please sign in to comment.