Skip to content

Commit 9ea4c5e

Browse files
committed
Do not consider LICENSE files in plugins archive
1 parent ae313c9 commit 9ea4c5e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugin/plugin.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ type FwUploader struct {
4242
func NewFWUploaderPlugin(pluginDir *paths.Path) (*FwUploader, error) {
4343
files, err := pluginDir.ReadDirRecursiveFiltered(
4444
paths.FilterNames(),
45-
paths.FilterOutDirectories(),
45+
paths.AndFilter(
46+
paths.FilterOutDirectories(),
47+
paths.FilterOutPrefixes("LICENSE"),
48+
),
4649
)
4750
if err != nil {
4851
return nil, err

0 commit comments

Comments
 (0)