cleanup: check path exists before cleanup.
It may have been already cleaned up by an earlier step.
This commit is contained in:
parent
50d12ce900
commit
4816e8320d
@ -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