From fc70b4b0a7eb78f6d10d3c58bae274db265575b3 Mon Sep 17 00:00:00 2001 From: John Barnette Date: Thu, 6 Dec 2012 16:02:49 -0800 Subject: [PATCH] Kill external BUNDLE_ env vars --- script/boxen-git-credential | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/boxen-git-credential b/script/boxen-git-credential index d4a775e..a9b75a0 100755 --- a/script/boxen-git-credential +++ b/script/boxen-git-credential @@ -21,6 +21,11 @@ require "pathname" Dir.chdir Pathname.new(__FILE__).realpath + "../.." +# Because we can be called from inside other Ruby processes, unset any +# `BUNDLE_` environment variables. + +ENV.keys.select { |k| /^BUNDLE_/i }.each { |k| ENV.delete k } + # Set up our local configuration, deps, and load path. load "config/basic.rb" -- 1.8.5.3