Display 'created new cache in ' message only if output is terminal

This commit is contained in:
Hendrik Luup committed 2021-03-22 11:31:08 +02:00
1 parent 88a23521dd
commit 5592c17e4a
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
Bugfix: Print `created new cache` message only on a terminal
`created new cache` message was outputed even when the output wasn't a
terminal. That broke piping `restic dump` output to tar or zip
if cache directory didn't exist. The message is now only printed on a
terminal.
https://github.com/restic/restic/issues/3334
https://github.com/restic/restic/pull/3343