diff options
Diffstat (limited to 'src/reader.go')
| -rw-r--r-- | src/reader.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reader.go b/src/reader.go index 3e2cf0a0..85cbf8be 100644 --- a/src/reader.go +++ b/src/reader.go @@ -4,7 +4,6 @@ import ( "bufio" "io" "os" - "os/exec" "github.com/junegunn/fzf/src/util" ) @@ -59,7 +58,7 @@ func (r *Reader) readFromStdin() { } func (r *Reader) readFromCommand(cmd string) { - listCommand := exec.Command("sh", "-c", cmd) + listCommand := util.ExecCommand(cmd) out, err := listCommand.StdoutPipe() if err != nil { return |
