aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/ruby.sh
diff options
context:
space:
mode:
authorMike McQuaid2017-09-25 19:18:16 +0100
committerGitHub2017-09-25 19:18:16 +0100
commit880f980f4eced68b7cb1da53e1e7591f42bafb64 (patch)
treedb6166c0c41584da8804d720fcdbc3a8519fbe69 /Library/Homebrew/utils/ruby.sh
parent46e6e9911acb34b2931cac4b95befeaa27ebd12f (diff)
parentdd75dd8a25b6e60b4f87c2220335e5bd37b9cc0f (diff)
downloadbrew-880f980f4eced68b7cb1da53e1e7591f42bafb64.tar.bz2
Merge pull request #3208 from MikeMcQuaid/more-leopard-fixes
portable-ruby: fix installation on Leopard.
Diffstat (limited to 'Library/Homebrew/utils/ruby.sh')
-rw-r--r--Library/Homebrew/utils/ruby.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/ruby.sh b/Library/Homebrew/utils/ruby.sh
index 813bb0999..9a3ab2e81 100644
--- a/Library/Homebrew/utils/ruby.sh
+++ b/Library/Homebrew/utils/ruby.sh
@@ -37,7 +37,7 @@ setup-ruby-path() {
if [[ -n "$HOMEBREW_RUBY_PATH" ]]
then
- ruby_old_version="$("$HOMEBREW_RUBY_PATH" -e "puts Gem::Version.new('$minimum_ruby_version') > Gem::Version.new(RUBY_VERSION)")"
+ 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" ]]