mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix display on test
This commit is contained in:
parent
ebc36b879d
commit
b36dd3f9cc
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue