0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Merge pull request #3700 from ErisDS/issue-3206

Escaping parens in grunt command paths
This commit is contained in:
Hannah Wolfe 2014-08-08 16:54:02 +01:00
commit 9eb2789d68

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'),