Merge pull request #2261 from mrkafk/master
core: check ENV for VAGRANT_NOCOLOR (equivalent of --no-color on cmdline)
This commit is contained in:
commit
0c19578afa
|
@ -35,7 +35,7 @@ opts = {}
|
|||
# * STDOUT is not a TTY
|
||||
# * 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
|
||||
# cause any invalid arguments down the road.
|
||||
ARGV.delete("--no-color")
|
||||
|
|
Loading…
Reference in New Issue