diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-31 15:21:04 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-31 15:21:04 -0400 |
commit | 36419d85aa849007998a4b69ac779de015a4e5ce (patch) | |
tree | eb4b296cf38f2c3b0cdb889bfb988ec036b54617 /config | |
parent | 1a4cc31d67cf7679966d6cf2928b7ad3e152c061 (diff) |
Use shell to execute filters, fix non-determinism
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 3 |
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, |