fix: rm command with --newer-than not working (#4944)
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user