Merge pull request #3332 from sjackman/setup-ruby-path
setup-ruby-path: Ensure that Ruby is installed
This commit is contained in:
commit
0ae6d2ab2f
@ -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" ]]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user