Skip dot dirs when scanning polecats

This commit is contained in:
joshuavial
2026-01-08 21:53:05 +13:00
parent 45634059dd
commit 85dd150d75
4 changed files with 208 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ func discoverHooks(townRoot string) ([]HookInfo, error) {
polecatsDir := filepath.Join(rigPath, "polecats")
if polecats, err := os.ReadDir(polecatsDir); err == nil {
for _, p := range polecats {
if p.IsDir() {
if p.IsDir() && !strings.HasPrefix(p.Name(), ".") {
locations = append(locations, struct {
path string
agent string