Disable colors in constructicon output

This commit is contained in:
Kevin Sawicki 2013-12-17 09:22:14 -08:00
parent f48514114d
commit 31fc4fcde8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@ var path = require('path');
process.chdir(path.dirname(__dirname));
cp.safeExec('node script/bootstrap', function() {
cp.safeExec('node script/bootstrap --no-color', function() {
// node_modules/.bin/grunt "$@"
var gruntPath = path.join('node_modules', '.bin', 'grunt') + (process.platform === 'win32' ? '.cmd' : '');
cp.safeSpawn(gruntPath, process.argv.slice(2), process.exit);