diff options
author | Colby Swandale <hello@colby.fyi> | 2018-05-20 20:25:32 +1000 |
---|---|---|
committer | Colby Swandale <hello@colby.fyi> | 2018-05-21 21:01:26 +1000 |
commit | 0f1d0bd5f72fd89df4ed8536f684918fe43c2110 (patch) | |
tree | 0a70c11fcec63bc0d32c1cabeccfae5713edea07 | |
parent | d5aa4548a0fd4d87031b121d2a074531d70dbb63 (diff) | |
download | bundler-colby/bundler-mkdir-no-sudo.tar.gz |
dont use sudo to create tmp gem install dircolby/bundler-mkdir-no-sudo
-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 |