diff --git a/watcher/cmd.go b/watcher/cmd.go index 276508d..d7eb862 100644 --- a/watcher/cmd.go +++ b/watcher/cmd.go @@ -15,7 +15,11 @@ func (h *Blueprint) Run(p *cli.Context) error { err := h.check() if err == nil { // loop projects - wg.Add(len(h.Projects)) + if p.String("name") != ""{ + wg.Add(1) + }else{ + wg.Add(len(h.Projects)) + } for k, element := range h.Projects { if p.String("name") != "" && h.Projects[k].Name != p.String("name") { continue