forked from TrueCloudLab/restic
Only print cache warning for terminals
This commit is contained in:
parent
d3ebe1311f
commit
2f26fb8834
1 changed files with 4 additions and 2 deletions
|
@ -388,9 +388,11 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if stdoutIsTerminal() {
|
||||||
Verbosef("found %d old cache directories in %v, pass --cleanup-cache to remove them\n",
|
Verbosef("found %d old cache directories in %v, pass --cleanup-cache to remove them\n",
|
||||||
len(oldCacheDirs), c.Base)
|
len(oldCacheDirs), c.Base)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue