check ENV for VAGRANT_NOCOLOR (equivalent of --no-color on cmdline)
This commit is contained in:
parent
33dd881ad7
commit
e4b6c91b7c
|
@ -28,7 +28,7 @@ opts = {}
|
||||||
# * STDOUT is not a TTY
|
# * STDOUT is not a TTY
|
||||||
# * The terminal doesn't support colors (Windows)
|
# * The terminal doesn't support colors (Windows)
|
||||||
#
|
#
|
||||||
if ARGV.include?("--no-color")
|
if ARGV.include?("--no-color") or ENV["VAGRANT_NOCOLOR"]
|
||||||
# Delete the argument from the list so that it doesn't
|
# Delete the argument from the list so that it doesn't
|
||||||
# cause any invalid arguments down the road.
|
# cause any invalid arguments down the road.
|
||||||
ARGV.delete("--no-color")
|
ARGV.delete("--no-color")
|
||||||
|
|
Loading…
Reference in New Issue