Merge pull request #17358 from samford/cask-audit-tmpdir-cleanup
Clean up cask audit tmpdir after use
This commit is contained in:
commit
86674b4c23
@ -47,6 +47,12 @@ module Cask
|
|||||||
@token_conflicts = token_conflicts
|
@token_conflicts = token_conflicts
|
||||||
@only = only || []
|
@only = only || []
|
||||||
@except = except || []
|
@except = except || []
|
||||||
|
|
||||||
|
# Clean up `#extract_artifacts` tmp dir when Audit object is destroyed
|
||||||
|
ObjectSpace.define_finalizer(
|
||||||
|
self,
|
||||||
|
proc { FileUtils.remove_entry(@tmpdir) if @tmpdir },
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def run!
|
def run!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user