diff options
author | Colby Swandale <hello@colby.fyi> | 2018-05-20 20:25:32 +1000 |
---|---|---|
committer | Colby Swandale <hello@colby.fyi> | 2018-06-06 21:15:58 +1000 |
commit | e11a3be76976c31646bdd45e98139699d3504b97 (patch) | |
tree | 19bcbdfd66d6e7bb145e9b641955161fc54bdbe9 | |
parent | 3f64291ec5b8d848f3fab18a26fc0b501d9a62e0 (diff) | |
download | bundler-e11a3be76976c31646bdd45e98139699d3504b97.tar.gz |
dont use sudo to create tmp gem install dir
-rw-r--r-- | lib/bundler/source/rubygems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 1759838b57..2f4a2fdac8 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -144,7 +144,7 @@ module Bundler bin_path = Bundler.system_bindir end - Bundler.mkdir_p bin_path unless spec.executables.empty? || Bundler.rubygems.provides?(">= 2.7.5") + Bundler.mkdir_p bin_path, :no_sudo => true unless spec.executables.empty? || Bundler.rubygems.provides?(">= 2.7.5") installed_spec = nil Bundler.rubygems.preserve_paths do |