aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-01 13:42:12 -0700
committerAdam Vandenberg2011-04-01 13:42:12 -0700
commit2decef8c36e04d6066f88f5e57bb918ef129828d (patch)
tree2c65c6713620fb1c82530fad51e4c64d8beaca3f
parent7776f7ee117eb3aa8a3b2a8eed70d96f66f9bba1 (diff)
downloadbrew-2decef8c36e04d6066f88f5e57bb918ef129828d.tar.bz2
Fix CLICOLOR_FORCE check
-rw-r--r--Library/Homebrew/cmd/doctor.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index be9787766..f1aae019e 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -562,10 +562,8 @@ def check_for_MACOSX_DEPLOYMENT_TARGET
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
+ 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.