Commit 53e3c284bbd4305ebe920ad1a1b99bfa37ec3eae

Authored by Pavel Repin
1 parent e9284cd796

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.

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -6,8 +6,8 @@
6 6 # FIX: only sudo if gem home isn't writable
7 7  
8 8 (gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) ||
9   - (echo "About to install Bundler (you may get a sudo prompt)" &&
10   - sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri)
  9 + sudo -p "About to install Bundler, password for sudo: " \
  10 + gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri
11 11  
12 12 # We don't want old config hanging around.
13 13