mirror of
https://github.com/restic/restic.git
synced 2026-09-12 07:27:56 +00:00
hide index loading progress for JSON output
This commit is contained in:
@@ -469,7 +469,7 @@ func runDebugExamine(ctx context.Context, gopts GlobalOptions, args []string) er
|
||||
}
|
||||
}
|
||||
|
||||
bar := newProgressMax(!gopts.Quiet, 0, "index files loaded")
|
||||
bar := newProgressMax(!gopts.Quiet && !gopts.JSON, 0, "index files loaded")
|
||||
err = repo.LoadIndex(ctx, bar)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user