do not treat darwin as win32

This commit is contained in:
nightwing 2016-06-09 13:48:05 +04:00
parent 6440ef1eb8
commit 60e4de8ec9

View File

@ -113,10 +113,10 @@ define(function(require, exports, module) {
paths.forEach(function(path) {
if (!path) return;
path = Path.relative(cwd, path);
if (/win/.test(process.platform)) {
if (process.platform == "win32") {
// Quote the path to escape unusual characters and spaces.
// NB: Double quotes are illegal within the actual path on Windows.
path = '"' + path + '"';
path = '"' + path.replace(/"/g, "") + '"';
}
args.push(path);
});