mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
utils/gems: use env shebang when installing gems
This commit is contained in:
parent
8b452d5e32
commit
81f262ece3
@ -81,7 +81,8 @@ module Homebrew
|
||||
ohai_if_defined "Installing '#{name}' gem"
|
||||
# `document: []` is equivalent to --no-document
|
||||
# `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
|
||||
|
||||
specs += specs.flat_map(&:runtime_dependencies)
|
||||
|
Loading…
x
Reference in New Issue
Block a user