diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 5e11844b6..ae7e9c325 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -92,7 +92,8 @@ func (c *OSCommand) RunCommandWithOutputLive(command string, output func(string) for scanner.Scan() { toWrite := output(re.ReplaceAllString(scanner.Text(), "")) if len(toWrite) > 0 { - tty.Write([]byte(toWrite + "\n")) + _, err := tty.Write([]byte(toWrite + "\n")) + logrus.Error(err.Error()) } } }()