mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-21 02:33:24 +00:00
Updated so that if GUI check fails, will only display help if no parameters are passed in
This commit is contained in:
@@ -260,7 +260,7 @@ limitations under the License.
|
|||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user