Skip to content

Commit

Permalink
Updated GUI check failure case, to only display help when no paramete…
Browse files Browse the repository at this point in the history
…rs are passed
  • Loading branch information
krayon007 committed Sep 20, 2022
1 parent a2236c2 commit 1a061ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/meshinstall-linux.js
Expand Up @@ -156,7 +156,7 @@ 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)
Expand Down

0 comments on commit 1a061ca

Please sign in to comment.