force rm tempfiles (no rescue nil); use right var

This commit is contained in:
Felix C. Stegerman 2014-11-24 16:58:59 +01:00
parent aca273c996
commit 023e4b8c23
1 changed files with 3 additions and 3 deletions

View File

@ -80,9 +80,9 @@ module Vagrant
# Removes any temporary files created by init
def deinit
FileUtils.remove_entry_secure(ENV["BUNDLE_APP_CONFIG"]) rescue nil
File.unlink(ENV["BUNDLE_CONFIG"]) rescue nil
File.unlink(ENV["GEMFILE"]) rescue nil
%w{ BUNDLE_APP_CONFIG BUNDLE_CONFIG BUNDLE_GEMFILE }.each do |entry|
FileUtils.remove_entry_secure(ENV[entry], true)
end
end
# Installs the list of plugins.