Updated GUI check failure case, to only display help when no parameters are passed
Bryan Roe committed
Sep 20, 2022 at 08:35 UTC
1a061ca38fe2d30176df668c42d2f29b5782572e
1 file changed
+1
-1
agents/meshinstall-linux.js
+1
-1
@@ -156,7 +156,7 @@ if (process.argv.includes('-translations'))
156
console.log(JSON.stringify(translation));
157
process.exit();
158
}
159
-if (process.argv.includes('-help') || (process.platform == 'linux' && process.env['XAUTHORITY']==null && process.env['DISPLAY'] == null))
159
+if (process.argv.includes('-help') || (process.platform == 'linux' && process.env['XAUTHORITY'] == null && process.env['DISPLAY'] == null && process.argv.length == 1))
160
{
161
console.log("\n" + translation[lang].commands + ": ");
162
if ((msh.InstallFlags & 1) == 1)