From 79a74a6555a6b0319a997baf83cdf3b1b0f18dc7 Mon Sep 17 00:00:00 2001 From: John Bellone Date: Thu, 26 Dec 2013 12:49:03 -0500 Subject: [PATCH] Update script/bootstrap sudo to pass environment variables. When executing a boxen run from inside the corporate firewall we need to pass proxies through to sudo so that bundler will be installed properly as root. --- script/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bootstrap b/script/bootstrap index f2459f9..41014a6 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,7 +6,7 @@ set -e # FIX: only sudo if gem home isn't writable (/usr/bin/gem list -i bundler -v '~> 1.3.0' > /dev/null) || { - /usr/bin/sudo -p "Need to install Bundler for system ruby, password for sudo: " \ + /usr/bin/sudo -E -p "Need to install Bundler for system ruby, password for sudo: " \ /usr/bin/gem install bundler -v '~> 1.3.0' --no-rdoc --no-ri }