fix broken tempdir removal
This commit is contained in:
parent
d1691c21c7
commit
aca273c996
|
@ -1,3 +1,4 @@
|
||||||
|
require "fileutils"
|
||||||
require "monitor"
|
require "monitor"
|
||||||
require "pathname"
|
require "pathname"
|
||||||
require "set"
|
require "set"
|
||||||
|
@ -79,7 +80,7 @@ module Vagrant
|
||||||
|
|
||||||
# Removes any temporary files created by init
|
# Removes any temporary files created by init
|
||||||
def deinit
|
def deinit
|
||||||
File.unlink(ENV["BUNDLE_APP_CONFIG"]) rescue nil
|
FileUtils.remove_entry_secure(ENV["BUNDLE_APP_CONFIG"]) rescue nil
|
||||||
File.unlink(ENV["BUNDLE_CONFIG"]) rescue nil
|
File.unlink(ENV["BUNDLE_CONFIG"]) rescue nil
|
||||||
File.unlink(ENV["GEMFILE"]) rescue nil
|
File.unlink(ENV["GEMFILE"]) rescue nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue