1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-23 00:39:13 +02:00

Removed github.com/ionrock/procs for better code coverage

This commit is contained in:
mjarkk
2018-10-27 16:57:34 +02:00
parent 9a99748d3b
commit ed564adb4a
19 changed files with 3 additions and 1304 deletions

View File

@ -5,10 +5,10 @@ package commands
import (
"bufio"
"errors"
"os"
"os/exec"
"regexp"
"github.com/ionrock/procs"
"github.com/kr/pty"
"github.com/mgutz/str"
)
@ -22,10 +22,8 @@ func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(s
splitCmd := str.ToArgv(command)
cmd := exec.Command(splitCmd[0], splitCmd[1:]...)
cmd.Env = procs.Env(map[string]string{
"LANG": "en_US.utf8",
"LC_ALL": "en_US.UTF-8",
}, true)
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "LANG=en_US.utf8", "LC_ALL=en_US.UTF-8")
tty, err := pty.Start(cmd)