From 50a64ea30b542f214765bc1f165964511f83f180 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 9 Jul 2015 13:53:18 -0600 Subject: [PATCH] Add a log statement --- lib/vagrant/util/subprocess.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/subprocess.rb b/lib/vagrant/util/subprocess.rb index fc574e7cf..b64496551 100644 --- a/lib/vagrant/util/subprocess.rb +++ b/lib/vagrant/util/subprocess.rb @@ -103,7 +103,8 @@ module Vagrant # the original environment - this is required for shelling out to # other subprocesses that depend on environment variables (like Ruby # and $GEM_PATH for example) - if !command[0].include?(installer_dir) + if !@command[0].downcase.include?(installer_dir) + @logger.info("Command not in installer, restoring original environment...") Vagrant.original_env.each do |k, v| process.environemnt[k] = v end