cleanup: check path exists before cleanup.

It may have been already cleaned up by an earlier step.
This commit is contained in:
Mike McQuaid 2020-07-10 09:32:27 +01:00
parent 50d12ce900
commit 4816e8320d
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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