Merge pull request #7961 from MikeMcQuaid/cleanup-exist
cleanup: check path exists before cleanup.
This commit is contained in:
commit
bab7c7e190
@ -302,6 +302,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def cleanup_path(path)
|
def cleanup_path(path)
|
||||||
|
return unless path.exist?
|
||||||
return unless @cleaned_up_paths.add?(path)
|
return unless @cleaned_up_paths.add?(path)
|
||||||
|
|
||||||
disk_usage = path.disk_usage
|
disk_usage = path.disk_usage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user