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.
This commit is contained in:
parent
e9284cd796
commit
53e3c284bb
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ set -e
|
||||||
# FIX: only sudo if gem home isn't writable
|
# FIX: only sudo if gem home isn't writable
|
||||||
|
|
||||||
(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) ||
|
(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) ||
|
||||||
(echo "About to install Bundler (you may get a sudo prompt)" &&
|
sudo -p "About to install Bundler, password for sudo: " \
|
||||||
sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri)
|
gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri
|
||||||
|
|
||||||
# We don't want old config hanging around.
|
# We don't want old config hanging around.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue