mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-11-26 09:00:57 +02:00
Fixed no error text on windows
when executing a command live on windows it detects errors but did just show a empty string
This commit is contained in:
parent
5ae0e75e5e
commit
18bcc0df4d
@ -5,5 +5,6 @@ package commands
|
||||
// RunCommandWithOutputLiveWrapper runs a command live but because of windows compatibility this command can't be ran there
|
||||
// TODO: Remove this hack and replace it with a propper way to run commands live on windows
|
||||
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) (errorMessage string, codeError error) {
|
||||
return errorMessage, c.RunCommand(command)
|
||||
cmdOputput := c.RunCommand(command)
|
||||
return cmdOputput.Error(), cmdOputput
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user