This commit is contained in:
Brian Zalewski 2023-12-07 07:48:50 +00:00
parent b266b39aee
commit ac3989d266

View file

@ -1800,9 +1800,11 @@ async function pruneInstallOrders(installOrders) {
async function installPlugins(pluginData) {
if (pluginData.cmd && pluginData.plugins && pluginData.plugins.length) {
const pluginWhen = pluginData.when
console.log('Plugin when condition:', pluginWhen)
try {
log('info', 'Plugin When', pluginWhen)
if (pluginWhen) {
runCommand(`Checking when condition for ${pluginData.package} plugin - ${plugin}`, pluginWhen)
}
for (const plugin of pluginData.plugins) {
try {
const pluginCmd = pluginData.cmd.replace(/{PLUGIN}/g, plugin)