From 8e913e6d3a2626231beae913358dcd6c037b36d4 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 8 May 2023 18:40:23 +0200 Subject: [PATCH] repair index: always read Quiet flags from GlobalOptions passed as parameter --- cmd/restic/cmd_repair_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_repair_index.go b/cmd/restic/cmd_repair_index.go index bacdf83e0..b1905836a 100644 --- a/cmd/restic/cmd_repair_index.go +++ b/cmd/restic/cmd_repair_index.go @@ -142,7 +142,7 @@ func rebuildIndex(ctx context.Context, opts RepairIndexOptions, gopts GlobalOpti if len(packSizeFromList) > 0 { Verbosef("reading pack files\n") - bar := newProgressMax(!globalOptions.Quiet, uint64(len(packSizeFromList)), "packs") + bar := newProgressMax(!gopts.Quiet, uint64(len(packSizeFromList)), "packs") invalidFiles, err := repo.CreateIndexFromPacks(ctx, packSizeFromList, bar) bar.Done() if err != nil {