diff --git a/packages/plugs/core/plugmanager.ts b/packages/plugs/core/plugmanager.ts index cf74b19..1ba1ff6 100644 --- a/packages/plugs/core/plugmanager.ts +++ b/packages/plugs/core/plugmanager.ts @@ -38,7 +38,12 @@ export async function updatePlugsCommand() { export async function updatePlugs() { let plugList: string[] = []; try { - plugList = await readYamlPage("PLUGS"); + const plugListRead: any[] = await readYamlPage("PLUGS"); + console.log(plugList); + plugList = plugListRead.filter((plug) => typeof plug === 'string'); + if (plugList.length !== plugListRead.length) { + throw new Error(`Some of the plugs were not in a yaml list format, they were ignored`); + } } catch (e: any) { throw new Error(`Error processing PLUGS: ${e.message}`); }