aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-28 11:57:57 -0700
committerAdam Vandenberg2011-03-28 11:57:57 -0700
commit093e2b4af57092c567c5be5db677fb68c8e7be96 (patch)
tree4d9795866bed99a9092b3ba893f0ddac35876823 /Library
parent78d85b357adeb216bf7caf86820b10769c011a0b (diff)
downloadhomebrew-093e2b4af57092c567c5be5db677fb68c8e7be96.tar.bz2
brew doctor - add check for CLICOLOR_FORCE
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb20
1 files changed, 17 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 37182fc28..9ff4db57b 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -543,9 +543,9 @@ def check_for_linked_kegonly_brews
end
end
-def check_for_other_vars
+def check_for_MACOSX_DEPLOYMENT_TARGET
target_var = ENV['MACOSX_DEPLOYMENT_TARGET']
- return if target_var.nil? or target_var.empty?
+ return if target_var.to_s.empty?
unless target_var == MACOS_VERSION.to_s
puts <<-EOS.undent
@@ -558,6 +558,19 @@ def check_for_other_vars
end
end
+def check_for_CLICOLOR_FORCE
+ target_var = ENV['CLICOLOR_FORCE']
+ return if target_var.to_s.empty?
+
+ unless target_var == MACOS_VERSION.to_s
+ puts <<-EOS.undent
+ $CLICOLOR_FORCE was set to #{target_var}
+ Having $CLICOLOR_FORCE set can cause git installs to fail.
+
+ EOS
+ end
+end
+
def check_for_other_frameworks
# Other frameworks that are known to cause problems when present
if File.exist? "/Library/Frameworks/expat.framework"
@@ -600,7 +613,8 @@ module Homebrew extend self
check_for_gettext
check_for_config_scripts
check_for_dyld_vars
- check_for_other_vars
+ check_for_MACOSX_DEPLOYMENT_TARGET
+ check_for_CLICOLOR_FORCE
check_for_symlinked_cellar
check_for_multiple_volumes
check_for_git