From a7b4c19abf671e95dccc43d2ea72d609099f9adf Mon Sep 17 00:00:00 2001 From: Oliver Buschjost Date: Sat, 29 Aug 2020 20:27:30 +0200 Subject: [PATCH] Fix display of warning about ignored filters --- cmd/restic/find.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/find.go b/cmd/restic/find.go index ca79ec265..8d39e177f 100644 --- a/cmd/restic/find.go +++ b/cmd/restic/find.go @@ -22,10 +22,10 @@ func FindFilteredSnapshots(ctx context.Context, repo *repository.Repository, hos // Process all snapshot IDs given as arguments. for _, s := range snapshotIDs { if s == "latest" { + usedFilter = true id, err = restic.FindLatestSnapshot(ctx, repo, paths, tags, hosts) if err != nil { Warnf("Ignoring %q, no snapshot matched given filter (Paths:%v Tags:%v Hosts:%v)\n", s, paths, tags, hosts) - usedFilter = true continue } } else {