Skip to content

Commit

Permalink
fix: don't overwrite entry exec if not using transform
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Mar 25, 2024
1 parent 63951a4 commit c0b222d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/external.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@ func (e External) Entries(ctx context.Context, term string) []Entry {
return entries
}

for k, v := range entries {
for k := range entries {
entries[k].Class = e.ModuleName
entries[k].Sub = e.ModuleName
entries[k].Exec = strings.ReplaceAll(e.cmd, "%RESULT%", v.Label)
}

return entries
Expand Down

0 comments on commit c0b222d

Please sign in to comment.