diff options
Diffstat (limited to 'src/terminal.go')
-rw-r--r-- | src/terminal.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/terminal.go b/src/terminal.go index 181b9c06..f1ddc48e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "os" - "os/exec" "os/signal" "regexp" "sort" @@ -720,11 +719,7 @@ func quoteEntry(entry string) string { func executeCommand(template string, replacement string) { command := strings.Replace(template, "{}", replacement, -1) - shell := os.Getenv("SHELL") - if len(shell) == 0 { - shell = "sh" - } - cmd := exec.Command(shell, "-c", command) + cmd := util.ExecCommand(command) cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr |