Add a log statement

This commit is contained in:
Seth Vargo 2015-07-09 13:53:18 -06:00
parent 0a5d37fc8b
commit 50a64ea30b
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ module Vagrant
# the original environment - this is required for shelling out to # the original environment - this is required for shelling out to
# other subprocesses that depend on environment variables (like Ruby # other subprocesses that depend on environment variables (like Ruby
# and $GEM_PATH for example) # 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| Vagrant.original_env.each do |k, v|
process.environemnt[k] = v process.environemnt[k] = v
end end