Fix dry run
This commit is contained in:
parent
b9b1b24e4e
commit
9abd7d31bd
@ -316,12 +316,13 @@ module Homebrew
|
|||||||
|
|
||||||
if dry_run?
|
if dry_run?
|
||||||
puts "Would remove: #{path} (#{path.abv})"
|
puts "Would remove: #{path} (#{path.abv})"
|
||||||
|
@disk_cleanup_size += disk_usage
|
||||||
else
|
else
|
||||||
puts "Removing: #{path}... (#{path.abv})"
|
puts "Removing: #{path}... (#{path.abv})"
|
||||||
yield
|
yield
|
||||||
|
@disk_cleanup_size += disk_usage - path.disk_usage
|
||||||
end
|
end
|
||||||
|
|
||||||
@disk_cleanup_size += disk_usage - path.disk_usage
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def cleanup_lockfiles(*lockfiles)
|
def cleanup_lockfiles(*lockfiles)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user