2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 03:18:55 +00:00
restic/internal/ui
Michael Eischer b48f579530 termstatus: Fix canUpdateStatus detection for redirected output
The canUpdateStatus check was simplified in #2608, but it accidentally flipped
the condition. The correct check is as follows: If the output is a pipe then
restic probably runs in mintty/cygwin. In that case it's possible to
update the output status. In all other cases it isn't.

This commit inverts to condition again to offer the previous and correct
behavior.
2020-12-06 19:02:42 +01:00
..
json backup: Fix possible deadlock of scanner goroutine 2020-09-30 23:13:10 +02:00
progress Replace restic.Progress with new progress.Counter 2020-11-09 12:12:35 +01:00
table avoiding unnecessary type conversions 2019-06-30 23:58:00 +03:00
termstatus termstatus: Fix canUpdateStatus detection for redirected output 2020-12-06 19:02:42 +01:00
backup.go backup: Always remove the status lines once a backup ends 2020-09-30 23:13:10 +02:00
message.go Use new archiver code for backup 2018-04-28 22:08:11 +02:00
stdio_wrapper_test.go Simplify ui.StdioWrapper.Write 2020-10-17 20:30:46 +02:00
stdio_wrapper.go Simplify ui.StdioWrapper.Write 2020-10-17 20:30:46 +02:00