1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed arguments with & in it.

This commit is contained in:
Ylian Saint-Hilaire 2019-04-22 16:26:33 -07:00
parent 61d48b5c74
commit 6a061b0d46
3 changed files with 7 additions and 3 deletions

View file

@ -155,7 +155,7 @@ function CreateMeshCentralServer(config, args) {
var arg = process.argv[i];
if (arg.length > 0) {
if (startLine.length > 0) startLine += ' ';
if (arg.indexOf(' ') >= 0) { startLine += '"' + arg + '"'; } else { startLine += arg; }
if ((arg.indexOf(' ') >= 0) || (arg.indexOf('&') >= 0)) { startLine += '"' + arg + '"'; } else { startLine += arg; }
}
}
obj.launchChildServer(startLine);