diff options
| author | Adam Vandenberg | 2011-04-04 09:21:44 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-04 09:21:44 -0700 |
| commit | 66110c78e7f301cbc047784efdefac2b223d3ba0 (patch) | |
| tree | c9e8a73d50d85a912f8e1d527c096d09d2861ce0 /Library/Homebrew/cmd | |
| parent | 29ac3efe2e5615ed1c89cc51deac0f2c5d55fbfe (diff) | |
| download | brew-66110c78e7f301cbc047784efdefac2b223d3ba0.tar.bz2 | |
brew doctor: add check for GREP_OPTIONS
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 570f40014..9ebaed4d3 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -565,8 +565,19 @@ def check_for_CLICOLOR_FORCE target_var = ENV['CLICOLOR_FORCE'].to_s unless target_var.empty? puts <<-EOS.undent - $CLICOLOR_FORCE was set to #{target_var} - Having $CLICOLOR_FORCE set can cause git installs to fail. + $CLICOLOR_FORCE was set to \"#{target_var}\". + Having $CLICOLOR_FORCE set can cause git builds to fail. + + EOS + end +end + +def check_for_GREP_OPTIONS + target_var = ENV['GREP_OPTIONS'].to_s + unless target_var.empty? + puts <<-EOS.undent + $GREP_OPTIONS was set to \"#{target_var}\". + Having $GREP_OPTIONS set can cause CMake builds to fail. EOS end @@ -618,6 +629,7 @@ module Homebrew extend self check_for_dyld_vars check_for_MACOSX_DEPLOYMENT_TARGET check_for_CLICOLOR_FORCE + check_for_GREP_OPTIONS check_for_symlinked_cellar check_for_multiple_volumes check_for_git |
