Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-09 07:25:38 +00:00
parent e565343c15
commit 6cbbc3626e

View file

@ -1504,14 +1504,16 @@ async function pruneInstallOrders(installOrders) {
} }
async function installPlugins(pluginData) { async function installPlugins(pluginData) {
for (const plugin of pluginData.plugins) { if (pluginData.cmd && pluginData.plugins && pluginData.plugins.length) {
try { for (const plugin of pluginData.plugins) {
const pluginCmd = plugin.cmd.replace(/{PLUGIN}/g, plugin) try {
runCommand(`Installing ${pluginData.package} plugin - ${plugin}`, `{pluginCmd}`) const pluginCmd = pluginData.cmd.replace(/{PLUGIN}/g, plugin)
log('success', 'Plugin', `Successfully installed ${pluginData.package} plugin - ${plugin}`) runCommand(`Installing ${pluginData.package} plugin - ${plugin}`, `{pluginCmd}`)
} catch (e) { log('success', 'Plugin', `Successfully installed ${pluginData.package} plugin - ${plugin}`)
log('error', 'Plugin', `Failed to install ${pluginData.package} plugin - ${plugin}`) } catch (e) {
console.error(e) log('error', 'Plugin', `Failed to install ${pluginData.package} plugin - ${plugin}`)
console.error(e)
}
} }
} }
} }