utils/gems: use env shebang when installing gems

This commit is contained in:
Bo Anderson 2022-11-19 00:58:05 +00:00
parent 8b452d5e32
commit 81f262ece3
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -81,7 +81,8 @@ module Homebrew
ohai_if_defined "Installing '#{name}' gem" ohai_if_defined "Installing '#{name}' gem"
# `document: []` is equivalent to --no-document # `document: []` is equivalent to --no-document
# `build_args: []` stops ARGV being used as a default # `build_args: []` stops ARGV being used as a default
specs = Gem.install name, version, document: [], build_args: [] # `env_shebang: true` makes shebangs generic to allow switching between system and Portable Ruby
specs = Gem.install name, version, document: [], build_args: [], env_shebang: true
end end
specs += specs.flat_map(&:runtime_dependencies) specs += specs.flat_map(&:runtime_dependencies)