mirror of
https://github.com/restic/restic.git
synced 2026-05-29 21:35:23 +00:00
forget: Treat -1 as forever for all "last n" opts
This commit is contained in:
@@ -108,8 +108,6 @@ func verifyForgetOptions(opts *ForgetOptions) error {
|
||||
}
|
||||
|
||||
if !negValFound {
|
||||
// durations := [6]restic.Duration{opts.Within, opts.WithinHourly, opts.WithinDaily,
|
||||
// opts.WithinMonthly, opts.WithinWeekly, opts.WithinYearly}
|
||||
for _, d := range [6]restic.Duration{opts.Within, opts.WithinHourly, opts.WithinDaily,
|
||||
opts.WithinMonthly, opts.WithinWeekly, opts.WithinYearly} {
|
||||
if d.Hours < -1 || d.Days < -1 || d.Months < -1 || d.Years < -1 {
|
||||
|
||||
Reference in New Issue
Block a user