aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-06 18:08:50 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-06 18:53:33 -0500
commit82dcbb2a65a6a073a1809fcd202b540885df02d2 (patch)
treec5491ee5ffb642c6d3c6a64d9adadfbdd77ae72a /fs.go
parent75805cd762dd552c3da5ca69a690b73ac6910e6b (diff)
downloadplanr-82dcbb2a65a6a073a1809fcd202b540885df02d2.tar.xz
planr-82dcbb2a65a6a073a1809fcd202b540885df02d2.zip
Ignore non-toml files
Diffstat (limited to 'fs.go')
-rw-r--r--fs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs.go b/fs.go
index b76f182..2ee1e37 100644
--- a/fs.go
+++ b/fs.go
@@ -135,6 +135,10 @@ func collectFromDir(
continue
}
+ if path.Ext(nm) != ".toml" {
+ continue
+ }
+
// Decode a unit
config, err := DecodeRubricConfig(child, cfgs)