From 544fe38786eeab7aa4077a7c692d2f5e7d994ae8 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 27 Jan 2024 19:00:23 +0100 Subject: [PATCH] check: suggest repair pack for all damaged packs --- cmd/restic/cmd_check.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/restic/cmd_check.go b/cmd/restic/cmd_check.go index 21c9cc899..8302c72bc 100644 --- a/cmd/restic/cmd_check.go +++ b/cmd/restic/cmd_check.go @@ -336,9 +336,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args errorsFound = true Warnf("%v\n", err) if err, ok := err.(*checker.ErrPackData); ok { - if strings.Contains(err.Error(), "wrong data returned, hash is") { - salvagePacks = append(salvagePacks, err.PackID) - } + salvagePacks = append(salvagePacks, err.PackID) } } p.Done()