From e9284cd796ffbf2f8450c3bf052e2ab9a47ef01f Mon Sep 17 00:00:00 2001 From: Pavel Repin Date: Tue, 5 Mar 2013 23:13:54 -0800 Subject: [PATCH 1/3] Be informative about impending "sudo" activity. --- script/bootstrap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/bootstrap b/script/bootstrap index b9534d9..951727e 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,7 +6,8 @@ set -e # FIX: only sudo if gem home isn't writable (gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || - sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri + (echo "About to install Bundler (you may get a sudo prompt)" && + sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri) # We don't want old config hanging around. From 53e3c284bbd4305ebe920ad1a1b99bfa37ec3eae Mon Sep 17 00:00:00 2001 From: Pavel Repin Date: Wed, 6 Mar 2013 01:18:35 -0800 Subject: [PATCH 2/3] Use "sudo -p" with informative prompt instead of echo. Won't show the prompt if sudo hasn't timed out since previous authorized sudo activity. --- script/bootstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 951727e..3781327 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,8 +6,8 @@ set -e # FIX: only sudo if gem home isn't writable (gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || - (echo "About to install Bundler (you may get a sudo prompt)" && - sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri) + sudo -p "About to install Bundler, password for sudo: " \ + gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri # We don't want old config hanging around. From e359be2cb1a7e452d83537f8ce1cd652ca69b80f Mon Sep 17 00:00:00 2001 From: Pavel Repin Date: Thu, 7 Mar 2013 08:46:52 -0800 Subject: [PATCH 3/3] Further clarification about Bundler installation. --- script/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bootstrap b/script/bootstrap index 3781327..eef3580 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,7 +6,7 @@ set -e # FIX: only sudo if gem home isn't writable (gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || - sudo -p "About to install Bundler, password for sudo: " \ + sudo -p "Need to install Bundler for system ruby, password for sudo: " \ gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri # We don't want old config hanging around.