From 9242e39a2337d7eee89eb53ec6ce455e185f1516 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 2 Dec 2014 12:32:31 -0500 Subject: [PATCH] Revert "Merge pull request #4861 from obfusk/fix-tmpdir-delete" This reverts commit 00e388a8977f519f077dda44aff2ddc4c1b9b05a, reversing changes made to d1691c21c7c61b84c6c98169ca9e3195f8848510. --- lib/vagrant/bundler.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb index dfe8a17c1..05867da15 100644 --- a/lib/vagrant/bundler.rb +++ b/lib/vagrant/bundler.rb @@ -1,4 +1,3 @@ -require "fileutils" require "monitor" require "pathname" require "set" @@ -80,9 +79,9 @@ module Vagrant # Removes any temporary files created by init def deinit - %w{ BUNDLE_APP_CONFIG BUNDLE_CONFIG BUNDLE_GEMFILE }.each do |entry| - FileUtils.remove_entry_secure(ENV[entry], true) - end + File.unlink(ENV["BUNDLE_APP_CONFIG"]) rescue nil + File.unlink(ENV["BUNDLE_CONFIG"]) rescue nil + File.unlink(ENV["GEMFILE"]) rescue nil end # Installs the list of plugins.