mirror of https://mirror.osredm.com/root/redis.git
redis-trib: Don't use colorization if TERM != xterm.
This commit is contained in:
parent
4286d8b979
commit
cda0cdfb70
|
@ -40,6 +40,7 @@ def xputs(s)
|
|||
color=nil
|
||||
end
|
||||
|
||||
color = nil if ENV['TERM'] != "xterm"
|
||||
print "\033[#{color}m" if color
|
||||
print s
|
||||
print "\033[0m" if color
|
||||
|
|
Loading…
Reference in New Issue