diff --git a/utils/streamformatter.go b/utils/streamformatter.go index a28cd5050e..60863d2aa6 100644 --- a/utils/streamformatter.go +++ b/utils/streamformatter.go @@ -60,7 +60,11 @@ func (sf *StreamFormatter) FormatProgress(id, action string, progress *JSONProgr } return b } - return []byte(action + " " + progress.String() + "\r") + endl := "\r" + if progress.String() == "" { + endl += "\n" + } + return []byte(action + " " + progress.String() + endl) } func (sf *StreamFormatter) Used() bool {