mirror of
https://github.com/restic/restic.git
synced 2025-03-13 16:20:52 +00:00
forget: Clarify log message for --dry-run --prune
This commit is contained in:
parent
b404ad4eaa
commit
7a36306901
@ -237,7 +237,11 @@ func runForget(ctx context.Context, opts ForgetOptions, gopts GlobalOptions, arg
|
|||||||
|
|
||||||
if len(removeSnIDs) > 0 && opts.Prune {
|
if len(removeSnIDs) > 0 && opts.Prune {
|
||||||
if !gopts.JSON {
|
if !gopts.JSON {
|
||||||
Verbosef("%d snapshots have been removed, running prune\n", len(removeSnIDs))
|
if opts.DryRun {
|
||||||
|
Verbosef("%d snapshots would be removed, running prune dry run\n", len(removeSnIDs))
|
||||||
|
} else {
|
||||||
|
Verbosef("%d snapshots have been removed, running prune\n", len(removeSnIDs))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pruneOptions.DryRun = opts.DryRun
|
pruneOptions.DryRun = opts.DryRun
|
||||||
return runPruneWithRepo(ctx, pruneOptions, gopts, repo, removeSnIDs)
|
return runPruneWithRepo(ctx, pruneOptions, gopts, repo, removeSnIDs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user