diff options
| author | Mike McQuaid | 2017-10-18 16:38:17 +0100 |
|---|---|---|
| committer | GitHub | 2017-10-18 16:38:17 +0100 |
| commit | 0ae6d2ab2f87f8ed8acb4ed7ec63d02ca4e5f7b3 (patch) | |
| tree | b2cfe277a83aceb379866b1afc78daab3c5e2fe6 /Library/Homebrew | |
| parent | 270b752f5d9d218bfbed6fe85b6974fa653fb25f (diff) | |
| parent | 7a0488e8032acc763bb669039c1c06508644d80e (diff) | |
| download | brew-0ae6d2ab2f87f8ed8acb4ed7ec63d02ca4e5f7b3.tar.bz2 | |
Merge pull request #3332 from sjackman/setup-ruby-path
setup-ruby-path: Ensure that Ruby is installed
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils/ruby.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/ruby.sh b/Library/Homebrew/utils/ruby.sh index 9a3ab2e81..b16531e9f 100644 --- a/Library/Homebrew/utils/ruby.sh +++ b/Library/Homebrew/utils/ruby.sh @@ -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" ]] |
