mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 20:51:44 +00:00
ensure progress downloader is well formated
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ func (r *progressReader) Close() error {
|
||||
func ProgressReader(r io.ReadCloser, size int, output io.Writer, template []byte, sf *StreamFormatter) *progressReader {
|
||||
tpl := string(template)
|
||||
if tpl == "" {
|
||||
tpl = "%v/%v (%v)"
|
||||
tpl = string(sf.FormatProgress("", "%v/%v (%v)"))
|
||||
}
|
||||
return &progressReader{r, NewWriteFlusher(output), size, 0, 0, tpl, sf}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user