diff --git a/Library/brew.sh b/Library/brew.sh index 3bb15adb42..54f713dd98 100644 --- a/Library/brew.sh +++ b/Library/brew.sh @@ -70,6 +70,10 @@ then HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby" else HOMEBREW_RUBY_PATH="$(which ruby)" + if [[ -z "$HOMEBREW_RUBY_PATH" ]] + then + odie "No Ruby found, cannot proceed." + fi fi fi