This commit is contained in:
alessio 2017-08-25 12:34:10 +02:00
parent 192dc3e179
commit cc88af49cd
1 changed files with 5 additions and 1 deletions

View File

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