diff options
| author | Mike McQuaid | 2016-04-18 15:16:43 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-18 15:16:43 +0100 |
| commit | 0e8140b012181413438002b65290c84284721694 (patch) | |
| tree | 896b446bab24f08c93dcb4564b8cea2cd9f68881 /Library | |
| parent | f15b631875ef19599bcb4e774d3e67596d1f93ac (diff) | |
| download | brew-0e8140b012181413438002b65290c84284721694.tar.bz2 | |
brew.sh: error out if no Ruby found.
This is a nicer error message than the `exec` failing at a later stage.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/brew.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/brew.sh b/Library/brew.sh index 3bb15adb4..54f713dd9 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 |
