about summary refs log tree commit diff stats
path: root/config/config.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-31 15:21:04 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-31 15:21:04 -0400
commit36419d85aa849007998a4b69ac779de015a4e5ce (patch)
treeeb4b296cf38f2c3b0cdb889bfb988ec036b54617 /config/config.go
parent1a4cc31d67cf7679966d6cf2928b7ad3e152c061 (diff)
downloadaerc-36419d85aa849007998a4b69ac779de015a4e5ce.tar.gz
Use shell to execute filters, fix non-determinism
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go
index 7c80d20..a63b7e8 100644
--- a/config/config.go
+++ b/config/config.go
@@ -158,7 +158,8 @@ func LoadConfig(root *string) (*AercConfig, error) {
 	}
 	if filters, err := file.GetSection("filters"); err == nil {
 		// TODO: Parse the filter more finely, e.g. parse the regex
-		for match, cmd := range filters.KeysHash() {
+		for _, match := range filters.KeyStrings() {
+			cmd := filters.KeysHash()[match]
 			filter := FilterConfig{
 				Command: cmd,
 				Filter:  match,