Unverified Commit 1986a892 authored by Steven Danna's avatar Steven Danna
Browse files

with_clean_env should clean BUNDLER_ variabls



In version 1.13.0, bundler moved from BUNDLE_ to BUNDLER_ as the
prefix for their environment variables.
Signed-off-by: default avatarSteven Danna <steve@chef.io>
parent e3807801
......@@ -928,6 +928,7 @@ module Omnibus
original = ENV.to_hash
ENV.delete("_ORIGINAL_GEM_PATH")
ENV.delete_if { |k, _| k.start_with?("BUNDLER_") }
ENV.delete_if { |k, _| k.start_with?("BUNDLE_") }
ENV.delete_if { |k, _| k.start_with?("GEM_") }
ENV.delete_if { |k, _| k.start_with?("RUBY") }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment