diff options
| author | Markus Reiter | 2017-03-06 18:41:36 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-07-29 21:48:29 +0200 |
| commit | b4381ddcaa5baf7a8eb4fa55a4bfc1f3a6e779d6 (patch) | |
| tree | 96effc6214d9fd314be9d51f4d402bf1d9846e2a /Library/Homebrew/cask | |
| parent | 73084096842b9ea6fb0b2feaefbb688eb59c9db0 (diff) | |
| download | brew-b4381ddcaa5baf7a8eb4fa55a4bfc1f3a6e779d6.tar.bz2 | |
Cleanup after each Cask.
Diffstat (limited to 'Library/Homebrew/cask')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb index f1a0308e5..036a0ac4c 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb @@ -45,13 +45,10 @@ module Hbc end def run - at_exit do - cleanup - end - Dir.chdir git_root do modified_cask_files.zip(modified_casks).each do |cask_file, cask| audit(cask, cask_file) + Cleanup.run(cask) if cleanup? end end report_failures @@ -121,9 +118,6 @@ module Hbc "#{failed_casks.join(" ")}" end - def cleanup - Cleanup.run if cleanup? - end end end end |
