Skip to content

Commit

Permalink
Fix io.Reader ambiguity on EOF in progressreader
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: tiborvass)
  • Loading branch information
tiborvass committed Jul 25, 2014
1 parent d082381 commit caa5769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/progressreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (r *progressReader) Read(p []byte) (n int, err error) {
r.lastUpdate = r.progress.Current
}
// Send newline when complete
if r.newLine && err != nil {
if r.newLine && err != nil && read == 0 {
r.output.Write(r.sf.FormatStatus("", ""))
}
return read, err
Expand Down

0 comments on commit caa5769

Please sign in to comment.