fix: rm command with --newer-than not working (#4944)

This commit is contained in:
voldikss
2024-06-01 08:03:35 -07:00
committed by GitHub
parent 5040e61400
commit 97bd7dcc66
+1 -1
View File
@@ -329,7 +329,7 @@ func removeSingle(url, versionID string, opts removeOpts) error {
}
// We should not proceed
if ignoreStatError && opts.olderThan != "" || opts.newerThan != "" {
if ignoreStatError && (opts.olderThan != "" || opts.newerThan != "") {
errorIf(pErr.Trace(url), "Unable to stat `"+url+"`.")
return exitStatus(globalErrorExitStatus)
}