mirror of
https://github.com/restic/restic.git
synced 2026-09-25 05:20:30 +00:00
hide index loading progress for JSON output
This commit is contained in:
@@ -363,7 +363,7 @@ func runDiff(ctx context.Context, opts DiffOptions, gopts GlobalOptions, args []
|
||||
if !gopts.JSON {
|
||||
Verbosef("comparing snapshot %v to %v:\n\n", sn1.ID().Str(), sn2.ID().Str())
|
||||
}
|
||||
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
|
||||
bar := newProgressMax(!gopts.Quiet && !gopts.JSON, 0, "index files loaded")
|
||||
if err = repo.LoadIndex(ctx, bar); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user