mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 07:26:56 +00:00
Merge pull request #3332 from sjackman/setup-ruby-path
setup-ruby-path: Ensure that Ruby is installed
This commit is contained in:
@@ -40,7 +40,7 @@ setup-ruby-path() {
|
||||
ruby_old_version="$("$HOMEBREW_RUBY_PATH" -rrubygems -e "puts Gem::Version.new('$minimum_ruby_version') > Gem::Version.new(RUBY_VERSION)")"
|
||||
fi
|
||||
|
||||
if [[ "$ruby_old_version" == "true" || -n "$HOMEBREW_FORCE_VENDOR_RUBY" ]]
|
||||
if [[ -z "$HOMEBREW_RUBY_PATH" || "$ruby_old_version" == "true" || -n "$HOMEBREW_FORCE_VENDOR_RUBY" ]]
|
||||
then
|
||||
brew vendor-install ruby
|
||||
if [[ ! -x "$vendor_ruby_path" ]]
|
||||
|
||||
Reference in New Issue
Block a user