Escaping parens in grunt command paths

fixes #3206
This commit is contained in:
Hannah Wolfe 2014-08-08 16:14:15 +01:00
parent 8cf270aad2
commit 140ee3d5e9

View File

@ -10,7 +10,7 @@ var path = require('path'),
fs = require('fs'),
_ = require('lodash'),
escapeChar = process.platform.match(/^win/) ? '^' : '\\',
cwd = process.cwd().replace(' ', escapeChar + ' '),
cwd = process.cwd().replace(/( |\(|\))/g, escapeChar + '$1'),
buildDirectory = path.resolve(cwd, '.build'),
distDirectory = path.resolve(cwd, '.dist'),