aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/ruby.sh
diff options
context:
space:
mode:
authorMike McQuaid2016-07-12 09:13:23 +0100
committerGitHub2016-07-12 09:13:23 +0100
commit873aa670d1f2a71c9b842827cf1d97796c8171da (patch)
treef21e0bb4d71be3191a998479ec83013ae8d17a89 /Library/Homebrew/utils/ruby.sh
parentc598e1afd5516724be8a67f2c929578bfeb69a18 (diff)
parentdd14357b484b1d3b05a79ea61bbf1e06ea63f273 (diff)
downloadbrew-873aa670d1f2a71c9b842827cf1d97796c8171da.tar.bz2
Merge pull request #494 from MikeMcQuaid/vendor-ruby-tweaks
Vendored Ruby tweaks
Diffstat (limited to 'Library/Homebrew/utils/ruby.sh')
-rw-r--r--Library/Homebrew/utils/ruby.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/utils/ruby.sh b/Library/Homebrew/utils/ruby.sh
index 6ff97b772..98fd34c1b 100644
--- a/Library/Homebrew/utils/ruby.sh
+++ b/Library/Homebrew/utils/ruby.sh
@@ -1,4 +1,4 @@
-origin-setup-ruby-path() {
+original-setup-ruby-path() {
if [[ -z "$HOMEBREW_DEVELOPER" ]]
then
unset HOMEBREW_RUBY_PATH
@@ -22,9 +22,9 @@ origin-setup-ruby-path() {
}
setup-ruby-path() {
- if [[ -z "$HOMEBREW_USE_VENDOR_RUBY" ]]
+ if [[ -z "$HOMEBREW_USE_VENDOR_RUBY" && -z "$HOMEBREW_FORCE_VENDOR_RUBY" ]]
then
- origin-setup-ruby-path
+ original-setup-ruby-path
return
fi
@@ -70,7 +70,7 @@ setup-ruby-path() {
ruby_version_major="${ruby_version_major%%.*}"
fi
- if [[ "$ruby_version_major" != "2" ]]
+ if [[ "$ruby_version_major" != "2" || -n "$HOMEBREW_FORCE_VENDOR_RUBY" ]]
then
brew vendor-install ruby --quiet
if [[ ! -x "$vendor_ruby_path" ]]