force rm tempfiles (no rescue nil); use right var
This commit is contained in:
parent
aca273c996
commit
023e4b8c23
|
@ -80,9 +80,9 @@ module Vagrant
|
||||||
|
|
||||||
# Removes any temporary files created by init
|
# Removes any temporary files created by init
|
||||||
def deinit
|
def deinit
|
||||||
FileUtils.remove_entry_secure(ENV["BUNDLE_APP_CONFIG"]) rescue nil
|
%w{ BUNDLE_APP_CONFIG BUNDLE_CONFIG BUNDLE_GEMFILE }.each do |entry|
|
||||||
File.unlink(ENV["BUNDLE_CONFIG"]) rescue nil
|
FileUtils.remove_entry_secure(ENV[entry], true)
|
||||||
File.unlink(ENV["GEMFILE"]) rescue nil
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Installs the list of plugins.
|
# Installs the list of plugins.
|
||||||
|
|
Loading…
Reference in New Issue