Skip to content
Snippets Groups Projects
Commit 5b06a27e authored by Jack Nagel's avatar Jack Nagel Committed by Adam Vandenberg
Browse files

doctor: be more forgiving about GREP_OPTIONS


Currently, `brew doctor` complains about GREP_OPTIONS being set,
regardless of its value. The cmake formula, for which this check was
introduced, is more specific about what actually makes it fail.

GREP_OPTIONS='--color=auto' will not cause the build to fail, so don't
warn about this.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent 113eaf26
No related branches found
No related tags found
No related merge requests found
......@@ -684,10 +684,10 @@ end
def check_for_GREP_OPTIONS
target_var = ENV['GREP_OPTIONS'].to_s
unless target_var.empty?
unless target_var.empty? or target_var == '--color=auto'
puts <<-EOS.undent
$GREP_OPTIONS was set to \"#{target_var}\".
Having $GREP_OPTIONS set can cause CMake builds to fail.
Having $GREP_OPTIONS set this way can cause CMake builds to fail.
EOS
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment