From cc88af49cd7625d8dd6fc81f7731dd300bcb6c08 Mon Sep 17 00:00:00 2001 From: alessio Date: Fri, 25 Aug 2017 12:34:10 +0200 Subject: [PATCH] bug fix #80 --- watcher/cmd.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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