mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 15:15:53 -05:00
Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
b420da573b
@ -56,7 +56,8 @@ function __readdirSync_fix(path)
|
||||
var sysnative = false;
|
||||
pathstr = require('fs')._fixwinpath(path);
|
||||
if (pathstr.split('\\*').join('').toLowerCase() == process.env['windir'].toLowerCase()) { sysnative = true; }
|
||||
var ret = __readdirSync_old(path);
|
||||
|
||||
var ret = require('fs').__readdirSync_old(path);
|
||||
if (sysnative) { ret.push('sysnative'); }
|
||||
return (ret);
|
||||
}
|
||||
|
@ -221,8 +221,6 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
|
||||
}
|
||||
|
||||
if (!skip)
|
||||
{
|
||||
if (process.platform != 'darwin')
|
||||
{
|
||||
if (process.argv.includes('-install') || process.argv.includes('-update'))
|
||||
{
|
||||
@ -274,8 +272,7 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if (process.platform == 'darwin')
|
||||
{
|
||||
if (!require('user-sessions').isRoot()) { console.log('\n' + translation[lang].elevation); process.exit(); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user