mirror of
https://github.com/rclone/rclone.git
synced 2025-01-22 06:09:21 +01:00
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
@ -62,7 +62,7 @@ func startProgress() func() {
|
||||
printProgress("")
|
||||
fs.LogPrint = oldLogPrint
|
||||
operations.SyncPrintf = oldSyncPrint
|
||||
fmt.Println("")
|
||||
fmt.Fprintln(terminal.Out, "")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user