1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-20 18:23:21 +00:00

Updated so that if GUI check fails, will only display help if no parameters are passed in

This commit is contained in:
Bryan Roe
2022-09-22 14:55:33 -07:00
parent c0b63eae13
commit 7a778cdbd4

View File

@@ -250,18 +250,18 @@ limitations under the License.
msh.InstallFlags = parseInt(msh.InstallFlags.toString());
}
if (process.argv.includes('-mesh'))
{
if (process.argv.includes('-mesh'))
{
console.log(JSON.stringify(msh, null, 2));
process.exit();
}
if (process.argv.includes('-translations'))
{
}
if (process.argv.includes('-translations'))
{
console.log(JSON.stringify(translation));
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 + ": ");
if ((msh.InstallFlags & 1) == 1)
{
@@ -282,7 +282,7 @@ limitations under the License.
}
console.log('');
process.exit();
}
}
if ((msh.InstallFlags & 1) == 1)
{