From 8066e93f477f6c044ea0df822613b07e8e176d2c Mon Sep 17 00:00:00 2001 From: Jean Kahrs Date: Tue, 2 Jul 2019 10:49:49 +0200 Subject: [PATCH] updade message that is shown when a cache cleanup is advised --- cmd/restic/global.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 69987cf80..be069f4eb 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -34,8 +34,9 @@ import ( "github.com/restic/restic/internal/errors" - "golang.org/x/crypto/ssh/terminal" "os/exec" + + "golang.org/x/crypto/ssh/terminal" ) var version = "0.9.5-dev (compiled manually)" @@ -425,7 +426,7 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) { } } 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, run `restic cache --cleanup` to remove them\n", len(oldCacheDirs), c.Base) } }