diff options
author | wycats <wycats@gmail.com> | 2010-07-01 01:55:11 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-07-01 01:55:11 -0700 |
commit | 778466632409fd5fd74a339f5746e11149bbdf45 (patch) | |
tree | da55379da10caf69d1ec07d2c76eb946ed5b2b71 | |
parent | b04d92374e804b0d346b818e08ce8f0226c5b0a0 (diff) | |
download | bundler-778466632409fd5fd74a339f5746e11149bbdf45.tar.gz |
Add a custom prompt to the sudo command so clueless users are not caught off guard by the password prompt and perhaps assume it is asking for a remote server's ssh password.
-rw-r--r-- | lib/bundler/source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index df03f76a54..e304b140f2 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -105,7 +105,7 @@ module Bundler end def sudo(str) - `sudo -E #{str}` + `sudo -p 'Bundler requires your password to install to your system gems location\nPassword: ' -E #{str}` end def cache(spec) |