aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/ruby.sh
diff options
context:
space:
mode:
authorShaun Jackman2017-10-17 15:10:04 -0700
committerShaun Jackman2017-10-17 15:14:58 -0700
commit7a0488e8032acc763bb669039c1c06508644d80e (patch)
tree90c7a7a9f593e9ea8eff7a4e3edcf4ef44f75c6a /Library/Homebrew/utils/ruby.sh
parentcf349018d5cc508ddd2bd0797df47688b9f7346b (diff)
downloadbrew-7a0488e8032acc763bb669039c1c06508644d80e.tar.bz2
setup-ruby-path: Ensure that Ruby is installed
Fix the error: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 372: exec: : not found
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 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" ]]