summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2018-10-20 19:44:56 +0200
committermjarkk <mkopenga@gmail.com>2018-10-20 19:44:56 +0200
commitac03665df34e8be89672fb98e202b182d745fdaf (patch)
treeb71acfb91f4717dcc0e05845a9a88eaaba23653e /pkg/commands/os.go
parent1be44eae84a3ec86adf749356c21d752d673223e (diff)
Handled some errors
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index a64b286f4..7bd714157 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -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)