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

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,12 +272,11 @@ 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(); }
}
}
}
if (!skip)