From 2d4938d5c00e8294571ff5a24a022856b1205ba3 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Tue, 25 Jul 2017 14:35:22 -0700 Subject: [PATCH] Actually let you disable colors with jake (#17414) * Actually let you disable colors with jake * @andy-ms revision --- Jakefile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jakefile.js b/Jakefile.js index be21deedd3a..31243f77c42 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -840,7 +840,8 @@ function runConsoleTests(defaultReporter, runInParallel) { testTimeout = 800000; } - var colors = process.env.colors || process.env.color || true; + var colorsFlag = process.env.color || process.env.colors; + var colors = colorsFlag !== "false" && colorsFlag !== "0"; var reporter = process.env.reporter || process.env.r || defaultReporter; var bail = process.env.bail || process.env.b; var lintFlag = process.env.lint !== 'false';