2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

updade message that is shown when a cache cleanup is advised

This commit is contained in:
Jean Kahrs 2019-07-02 10:49:49 +02:00
parent 3ca424050f
commit 8066e93f47

View File

@ -34,8 +34,9 @@ import (
"github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/errors"
"golang.org/x/crypto/ssh/terminal"
"os/exec" "os/exec"
"golang.org/x/crypto/ssh/terminal"
) )
var version = "0.9.5-dev (compiled manually)" var version = "0.9.5-dev (compiled manually)"
@ -425,7 +426,7 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) {
} }
} else { } else {
if stdoutIsTerminal() { 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, run `restic cache --cleanup` to remove them\n",
len(oldCacheDirs), c.Base) len(oldCacheDirs), c.Base)
} }
} }