mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 14:23:53 -05:00
Make sure the alias statement only executes if there is not already an alias in place
This commit is contained in:
committed by
Mislav Marohnić
parent
074161f9c1
commit
d508822f9a
@@ -10,7 +10,7 @@ hook = lambda do |installer|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install)
|
if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install) && !Bundler::Installer.respond_to?(:install_without_rbenv_rehash)
|
||||||
Bundler::Installer.class_eval do
|
Bundler::Installer.class_eval do
|
||||||
class << self
|
class << self
|
||||||
alias install_without_rbenv_rehash install
|
alias install_without_rbenv_rehash install
|
||||||
|
|||||||
Reference in New Issue
Block a user