From 53e3c284bbd4305ebe920ad1a1b99bfa37ec3eae Mon Sep 17 00:00:00 2001 From: Pavel Repin Date: Wed, 6 Mar 2013 01:18:35 -0800 Subject: [PATCH] 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. -- 1.8.5.3