mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 10:17:15 +02:00
Merge branch 'master' into develop
This commit is contained in:
@@ -148,8 +148,11 @@ async function upgradePlugins(unattended = false) {
|
||||
if (['y', 'Y', 'yes', 'YES'].includes(result.upgrade)) {
|
||||
console.log('\nUpgrading packages...');
|
||||
const args = packageManagerInstallArgs.concat(found.map(suggestObj => `${suggestObj.name}@${suggestObj.suggested}`));
|
||||
|
||||
cproc.execFileSync(packageManagerExecutable, args, { stdio: 'ignore' });
|
||||
const options = { stdio: 'ignore' };
|
||||
if (process.platform === 'win32') {
|
||||
options.shell = true;
|
||||
}
|
||||
cproc.execFileSync(packageManagerExecutable, args, options);
|
||||
} else {
|
||||
console.log(`${chalk.yellow('Package upgrades skipped')}. Check for upgrades at any time by running "${chalk.green('./nodebb upgrade -p')}".`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user