Skip to content

Commit

Permalink
Do not consider LICENSE files in plugins archive
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jul 13, 2023
1 parent ae313c9 commit 9ea4c5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ type FwUploader struct {
func NewFWUploaderPlugin(pluginDir *paths.Path) (*FwUploader, error) {
files, err := pluginDir.ReadDirRecursiveFiltered(
paths.FilterNames(),
paths.FilterOutDirectories(),
paths.AndFilter(
paths.FilterOutDirectories(),
paths.FilterOutPrefixes("LICENSE"),
),
)
if err != nil {
return nil, err
Expand Down

0 comments on commit 9ea4c5e

Please sign in to comment.