From 2d1bdebd91233fcb01fb174c07a32c88cf335fca Mon Sep 17 00:00:00 2001 From: simoesp Date: Wed, 5 Jan 2022 15:53:58 +0000 Subject: [PATCH] Fix excludes when quiet is turned on with quiet parameter turned on the excludes were ignored --- scanner/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scanner/main.go b/scanner/main.go index d709faa..48e1365 100644 --- a/scanner/main.go +++ b/scanner/main.go @@ -151,8 +151,10 @@ func main() { fmt.Fprintf(errFile, "%s: %s\n", path, err) return nil } - if excludes.Has(path) && !quiet { - fmt.Fprintf(logFile, "Skipping %s\n", path) + if excludes.Has(path){ + if !quiet { + fmt.Fprintf(logFile, "Skipping %s\n", path) + } return filepath.SkipDir } if info.IsDir() {