mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
Handled some errors
This commit is contained in:
@ -85,6 +85,7 @@ func (c *OSCommand) RunCommandWithOutputLive(command string, output func(string)
|
||||
|
||||
go func() {
|
||||
// Regex to cleanup the command output
|
||||
// sometimes the output words include unneeded spaces at eatch end of the string
|
||||
re := regexp.MustCompile(`(^\s*)|(\s*$)`)
|
||||
|
||||
scanner := bufio.NewScanner(tty)
|
||||
|
Reference in New Issue
Block a user