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

This commit is contained in:
Hendrik Luup
2021-03-22 11:31:08 +02:00
parent 88a23521dd
commit 5592c17e4a
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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)
}