Merge pull request #4785 from reitermarkus/fix-cleanup-non-existent-sysmlink
Skip `mtime` for non-existent symlink.
This commit is contained in:
commit
d8dc1f7fe0
@ -43,6 +43,8 @@ module CleanupRefinement
|
|||||||
return false unless days
|
return false unless days
|
||||||
return true if days.zero?
|
return true if days.zero?
|
||||||
|
|
||||||
|
return true if symlink? && !exist?
|
||||||
|
|
||||||
# TODO: Replace with ActiveSupport's `.days.ago`.
|
# TODO: Replace with ActiveSupport's `.days.ago`.
|
||||||
mtime < ((@time ||= Time.now) - days * 60 * 60 * 24)
|
mtime < ((@time ||= Time.now) - days * 60 * 60 * 24)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user