Synced changes for silent install, with agent repo

This commit is contained in:
Bryan Roe 2022-10-24 11:33:40 -07:00
parent 72e64506e1
commit 2b04eebcab
1 changed files with 14 additions and 17 deletions

View File

@ -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(); }
}