Merge pull request #3332 from sjackman/setup-ruby-path

setup-ruby-path: Ensure that Ruby is installed
This commit is contained in:
Mike McQuaid 2017-10-18 16:38:17 +01:00 committed by GitHub
commit 0ae6d2ab2f

View File

@ -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" ]]