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