mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
Display 'created new cache in ' message only if output is terminal
This commit is contained in:
1 parent
88a23521dd
commit
5592c17e4a
2 files changed
+10
-1
No files matched your search
@@ -492,7 +492,7 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) {
|
||||
return s, nil
|
||||
}
|
||||
|
||||
if c.Created && !opts.JSON {
|
||||
if c.Created && !opts.JSON && stdoutIsTerminal() {
|
||||
Verbosef("created new cache in %v\n", c.Base)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user