bug fix #80
This commit is contained in:
parent
192dc3e179
commit
cc88af49cd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue