From 36419d85aa849007998a4b69ac779de015a4e5ce Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 31 Mar 2019 15:21:04 -0400 Subject: Use shell to execute filters, fix non-determinism --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') 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, -- cgit v1.2.3