mirror of
https://github.com/restic/restic.git
synced 2024-12-25 09:18:55 +00:00
prune: make it clearer when prune is used in dry-run mode
This commit is contained in:
parent
e02a10c58a
commit
b404ad4eaa
1 changed files with 4 additions and 0 deletions
|
@ -196,6 +196,10 @@ func runPruneWithRepo(ctx context.Context, opts PruneOptions, gopts GlobalOption
|
|||
return err
|
||||
}
|
||||
|
||||
if opts.DryRun {
|
||||
Verbosef("\nWould have made the following changes:")
|
||||
}
|
||||
|
||||
err = printPruneStats(stats)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue