ruby.sh: don't test ruby on macOS.

Instead defer to the `HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH`
variable.
This commit is contained in:
Mike McQuaid 2020-12-08 17:23:06 +00:00
parent 9b4a7856ac
commit f7d72ae77c
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -32,7 +32,8 @@ unusable_ruby() {
if [[ -n "$HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH" ]]
then
return 1
elif [[ -n "$HOMEBREW_RUBY_PATH" && -z "$HOMEBREW_FORCE_VENDOR_RUBY" ]] && test_ruby "$HOMEBREW_RUBY_PATH"
elif [[ -z "$HOMEBREW_MACOS" && -n "$HOMEBREW_RUBY_PATH" && -z "$HOMEBREW_FORCE_VENDOR_RUBY" ]] &&
test_ruby "$HOMEBREW_RUBY_PATH"
then
return 1
else