mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
do not treat darwin as win32
This commit is contained in:
parent
6440ef1eb8
commit
60e4de8ec9
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user