From 04f79b96424573bf112028e2e65c145521c24e96 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 3 Aug 2020 19:31:49 +0200 Subject: [PATCH] prune: Stop progress bar after searching used blobs --- cmd/restic/cmd_prune.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 2d84f2e71..eb44e096b 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -295,6 +295,7 @@ func getUsedBlobs(gopts GlobalOptions, repo restic.Repository, snapshots []*rest bar := newProgressMax(!gopts.Quiet, uint64(len(snapshots)), "snapshots") bar.Start() + defer bar.Done() for _, sn := range snapshots { debug.Log("process snapshot %v", sn.ID())