Fix dry run

This commit is contained in:
tueksta 2019-02-06 22:50:17 +01:00 committed by GitHub
parent b9b1b24e4e
commit 9abd7d31bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,12 +316,13 @@ module Homebrew
if dry_run?
puts "Would remove: #{path} (#{path.abv})"
@disk_cleanup_size += disk_usage
else
puts "Removing: #{path}... (#{path.abv})"
yield
@disk_cleanup_size += disk_usage - path.disk_usage
end
@disk_cleanup_size += disk_usage - path.disk_usage
end
def cleanup_lockfiles(*lockfiles)