diff --git a/cmd/rules.go b/cmd/rules.go index 483699f..41011bc 100644 --- a/cmd/rules.go +++ b/cmd/rules.go @@ -70,12 +70,23 @@ func (r *Rules) addFiles() (err error) { if err != nil { return } - r.rules = append(r.rules, ruleDir) + addon.Activity( + "[RULESET] fetching: %s", + r.Path) bucket := addon.Bucket() err = bucket.Get(r.Path, ruleDir) if err != nil { return } + entries, err := os.ReadDir(ruleDir) + if err != nil { + return + } + for _, ent := range entries { + r.rules = append( + r.rules, + path.Join(ruleDir, ent.Name())) + } return }