mirror of
https://github.com/restic/restic.git
synced 2026-10-13 05:27:13 +00:00
forget: Enable --dry-run together with --prune
This commit is contained in:
1 parent
f7c7c2f730
commit
edf89e1c74
1 file changed
+1
-1
@@ -210,7 +210,7 @@ func runForget(opts ForgetOptions, gopts GlobalOptions, args []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
if len(removeSnIDs) > 0 && opts.Prune && !opts.DryRun {
|
||||
if len(removeSnIDs) > 0 && opts.Prune {
|
||||
if !gopts.JSON {
|
||||
Verbosef("%d snapshots have been removed, running prune\n", len(removeSnIDs))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user