From 56fd7bf0b492ab6627c0938d8ef51ada89aa7a95 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Mon, 18 Nov 2024 13:26:05 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Don't=20process=20multiple=20fil?= =?UTF-8?q?es=20per=20show=20if=20multiple=20source=20directories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convids/logic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convids/logic.go b/convids/logic.go index 63fe2bc..bcd41b8 100644 --- a/convids/logic.go +++ b/convids/logic.go @@ -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 } } }