parent
48fb6a85a5
commit
03862b33a6
@ -105,7 +105,7 @@ func (a *Action) exec(match string) {
|
|||||||
var computedCommand []string
|
var computedCommand []string
|
||||||
|
|
||||||
if a.filter.pattern != nil {
|
if a.filter.pattern != nil {
|
||||||
computedCommand := make([]string, 0, len(a.Cmd))
|
computedCommand = make([]string, 0, len(a.Cmd))
|
||||||
|
|
||||||
for _, item := range a.Cmd {
|
for _, item := range a.Cmd {
|
||||||
computedCommand = append(computedCommand, strings.ReplaceAll(item, a.filter.pattern.nameWithBraces, match))
|
computedCommand = append(computedCommand, strings.ReplaceAll(item, a.filter.pattern.nameWithBraces, match))
|
||||||
|
Loading…
Reference in New Issue
Block a user