mirror of
https://github.com/restic/restic.git
synced 2026-08-29 00:37:31 +00:00
Display 'created new cache in ' message only if output is terminal
This commit is contained in:
@@ -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