aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-10-18 20:10:57 -0500
committerJack Nagel2011-10-18 20:10:57 -0500
commit9a9846814f4c5e33454e74caf84024a38d65ecb7 (patch)
tree7847ef5a09215d547852c36eb8b4dcb8b219e1f7 /Library
parent0dbf06bbc85b8f1f04e4d6295044bcf58c1db47d (diff)
downloadbrew-9a9846814f4c5e33454e74caf84024a38d65ecb7.tar.bz2
doctor: correctly detect CLICOLOR_FORCE
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 339a7a72c..ae7b5ea4d 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -685,11 +685,10 @@ def check_for_MACOSX_DEPLOYMENT_TARGET
end
def check_for_CLICOLOR_FORCE
- target_var = ENV['CLICOLOR_FORCE'].to_s
- unless target_var.empty?
+ if ENV['CLICOLOR_FORCE']
puts <<-EOS.undent
- $CLICOLOR_FORCE was set to \"#{target_var}\".
- Having $CLICOLOR_FORCE set can cause git builds to fail.
+ Having $CLICOLOR_FORCE set can cause some builds to fail.
+ You may want to unset it.
EOS
end