Allow forcing colored output.
This commit is contained in:
parent
3a99e64646
commit
9db17ab5bc
@ -34,6 +34,8 @@ module Homebrew
|
||||
end
|
||||
|
||||
HOMEBREW_LIBRARY_PATH.cd do
|
||||
ENV.delete("HOMEBREW_COLOR")
|
||||
ENV.delete("HOMEBREW_NO_COLOR")
|
||||
ENV.delete("HOMEBREW_VERBOSE")
|
||||
ENV.delete("VERBOSE")
|
||||
ENV.delete("HOMEBREW_CASK_OPTS")
|
||||
|
||||
@ -61,7 +61,7 @@ module Tty
|
||||
end
|
||||
|
||||
def to_s
|
||||
if ENV["HOMEBREW_NO_COLOR"] || !$stdout.tty?
|
||||
if !ENV["HOMEBREW_COLOR"] && (ENV["HOMEBREW_NO_COLOR"] || !$stdout.tty?)
|
||||
return ""
|
||||
end
|
||||
current_escape_sequence
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user