Disable colors when BUILT_PRODUCTS_DIR env var is set

This commit is contained in:
Kevin Sawicki 2013-12-17 09:15:04 -08:00
parent 4f758f1fe2
commit f48514114d

View File

@ -22,7 +22,7 @@ function executeCommands(commands, done, index) {
done(null);
}
var apmFlags = process.env.JANKY_SHA1 ? '--no-color' : '';
var apmFlags = process.env.JANKY_SHA1 || process.env.BUILT_PRODUCTS_DIR ? '--no-color' : '';
var echoNewLine = process.platform == 'win32' ? 'echo.' : 'echo';
var commands = [
'git submodule --quiet sync',