🐛 Don't process multiple files per show if multiple source directories
This commit is contained in:
parent
1b072f42d3
commit
56fd7bf0b4
1 changed files with 2 additions and 1 deletions
|
|
@ -119,6 +119,7 @@ func WalkFiles(d *Data, stopOnError bool, gp GroupPrinter, cb ShowWalker) (err e
|
||||||
if len(s.Sources) == 0 {
|
if len(s.Sources) == 0 {
|
||||||
s.Sources = []string{d.Config.Source}
|
s.Sources = []string{d.Config.Source}
|
||||||
}
|
}
|
||||||
|
showstart:
|
||||||
for _, source := range s.Sources {
|
for _, source := range s.Sources {
|
||||||
files = allFiles.GetFiles(source)
|
files = allFiles.GetFiles(source)
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
|
|
@ -142,7 +143,7 @@ func WalkFiles(d *Data, stopOnError bool, gp GroupPrinter, cb ShowWalker) (err e
|
||||||
if cbErr != nil {
|
if cbErr != nil {
|
||||||
err = cbErr
|
err = cbErr
|
||||||
}
|
}
|
||||||
break
|
break showstart
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue