🐛 Don't process multiple files per show if multiple source directories

This commit is contained in:
Dan Jones 2024-11-18 13:26:05 -06:00
commit 56fd7bf0b4

View file

@ -119,6 +119,7 @@ func WalkFiles(d *Data, stopOnError bool, gp GroupPrinter, cb ShowWalker) (err e
if len(s.Sources) == 0 {
s.Sources = []string{d.Config.Source}
}
showstart:
for _, source := range s.Sources {
files = allFiles.GetFiles(source)
for _, file := range files {
@ -142,7 +143,7 @@ func WalkFiles(d *Data, stopOnError bool, gp GroupPrinter, cb ShowWalker) (err e
if cbErr != nil {
err = cbErr
}
break
break showstart
}
}
}