2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-01 17:23:57 +00:00

prune: make it clearer when prune is used in dry-run mode

This commit is contained in:
Michael Eischer 2022-12-30 15:01:49 +01:00
parent e02a10c58a
commit b404ad4eaa

View File

@ -196,6 +196,10 @@ func runPruneWithRepo(ctx context.Context, opts PruneOptions, gopts GlobalOption
return err return err
} }
if opts.DryRun {
Verbosef("\nWould have made the following changes:")
}
err = printPruneStats(stats) err = printPruneStats(stats)
if err != nil { if err != nil {
return err return err