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