Skip to content

Commit

Permalink
Test againts all exclude-glob entries (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: Amir Mofasser <[email protected]>
  • Loading branch information
Karandash8 and amimof authored Dec 20, 2023
1 parent 1c462f2 commit 0c71f9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ func isCertFile(p string) bool {
func (e *Exporter) isExcluded(s string) bool {
for _, v := range e.excludeGlobs {
exclude, _ := filepath.Match(v, s)
return exclude
if exclude {
return exclude
}
}
return false
}
Expand Down

0 comments on commit 0c71f9f

Please sign in to comment.