homebrew_bootsnap: use utils/gems.

This is more robust e.g. if we don't have a `bundler` already installed.
This commit is contained in:
Mike McQuaid 2021-02-02 13:18:09 +00:00
parent 3b8fa5a7af
commit 4355f7cf25
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -14,9 +14,8 @@ if !ENV["HOMEBREW_NO_BOOTSNAP"] &&
rescue LoadError
raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
Dir.chdir(HOMEBREW_LIBRARY_PATH) do
system "bundle", "install", "--standalone"
end
require "utils/gems"
Homebrew.install_bundler_gems!
ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
exec ENV["HOMEBREW_BREW_FILE"], *ARGV