mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 15:15:53 -05:00
Updated GUI check failure case, to only display help when no parameters are passed
This commit is contained in:
parent
a2236c2ca7
commit
1a061ca38f
@ -156,7 +156,7 @@ if (process.argv.includes('-translations'))
|
|||||||
console.log(JSON.stringify(translation));
|
console.log(JSON.stringify(translation));
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
if (process.argv.includes('-help') || (process.platform == 'linux' && process.env['XAUTHORITY']==null && process.env['DISPLAY'] == null))
|
if (process.argv.includes('-help') || (process.platform == 'linux' && process.env['XAUTHORITY'] == null && process.env['DISPLAY'] == null && process.argv.length == 1))
|
||||||
{
|
{
|
||||||
console.log("\n" + translation[lang].commands + ": ");
|
console.log("\n" + translation[lang].commands + ": ");
|
||||||
if ((msh.InstallFlags & 1) == 1)
|
if ((msh.InstallFlags & 1) == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user