Skip to content

Commit

Permalink
Fix excludes when quiet is turned on
Browse files Browse the repository at this point in the history
with quiet parameter turned on the excludes were ignored
  • Loading branch information
simoesp authored and hillu committed Jan 5, 2022
1 parent 014886d commit 2d1bdeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2d1bdeb

Please sign in to comment.