handle carriage return in 'shell-pipe' output
This commit is contained in:
1 parent
847c46421c
commit
bdf20aa451
1 file changed
+1
-1
@@ -245,7 +245,7 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
|||||||
}
|
}
|
||||||
buf = append(buf, b)
|
buf = append(buf, b)
|
||||||
app.ui.exprChan <- multiExpr{&callExpr{"echo", []string{string(buf)}}, 1}
|
app.ui.exprChan <- multiExpr{&callExpr{"echo", []string{string(buf)}}, 1}
|
||||||
if b == '\n' {
|
if b == '\n' || b == '\r' {
|
||||||
buf = nil
|
buf = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user