diff options
| author | Markus Reiter | 2017-07-30 00:22:44 +0200 |
|---|---|---|
| committer | GitHub | 2017-07-30 00:22:44 +0200 |
| commit | 49e12b5b534739f8d1c8f67355f1e50ae9b21e57 (patch) | |
| tree | 437070e8c288748a7c83388f40b8c5f444113508 /Library | |
| parent | 73084096842b9ea6fb0b2feaefbb688eb59c9db0 (diff) | |
| parent | f4501787635a8732909ee811b1b850d52802e928 (diff) | |
| download | brew-49e12b5b534739f8d1c8f67355f1e50ae9b21e57.tar.bz2 | |
Merge pull request #2971 from reitermarkus/cleanup-audit-modified-casks
Cleanup after each Cask.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb | 9 |
1 files changed, 1 insertions, 8 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..3673a5391 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 @@ -120,10 +117,6 @@ module Hbc odie "audit failed for #{Formatter.pluralize(num_failed, "cask")}: " \ "#{failed_casks.join(" ")}" end - - def cleanup - Cleanup.run if cleanup? - end end end end |
