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
|
||||
|
||||
def cleanup_path(path)
|
||||
return unless path.exist?
|
||||
return unless @cleaned_up_paths.add?(path)
|
||||
|
||||
disk_usage = path.disk_usage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user