From 03862b33a66e10d55e072ff7b9b1953327ff2100 Mon Sep 17 00:00:00 2001 From: ppom Date: Wed, 10 Jan 2024 12:00:00 +0100 Subject: [PATCH] Fix bug introduced by af2f092b. Fix #67 --- app/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/daemon.go b/app/daemon.go index f249c83..f4b8e6e 100644 --- a/app/daemon.go +++ b/app/daemon.go @@ -105,7 +105,7 @@ func (a *Action) exec(match string) { var computedCommand []string if a.filter.pattern != nil { - computedCommand := make([]string, 0, len(a.Cmd)) + computedCommand = make([]string, 0, len(a.Cmd)) for _, item := range a.Cmd { computedCommand = append(computedCommand, strings.ReplaceAll(item, a.filter.pattern.nameWithBraces, match))