forked from TrueCloudLab/rclone
progress: output final newline to terminal.Out
fmt.Println writes to stdout, which may be redirected and wrongly included with the main program output (like the cat command) instead of written to the terminal output. Note the rest of the progress output goes to terminal.Out in printProgress via terminal.Write()
This commit is contained in:
parent
14534c573a
commit
3192e00f4f
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ func startProgress() func() {
|
|||
printProgress("")
|
||||
fs.LogPrint = oldLogPrint
|
||||
operations.SyncPrintf = oldSyncPrint
|
||||
fmt.Println("")
|
||||
fmt.Fprintln(terminal.Out, "")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue