Fixed installing plugin.

This commit is contained in:
SamTV12345 2024-03-16 14:27:52 +01:00
parent cf9e0a2d93
commit 9956f77f22

View file

@ -19,7 +19,7 @@ if (thirdOptPlug && thirdOptPlug.includes('path')) {
installFromPath = true installFromPath = true
} }
plugins.indexOf('--path') !== -1 && plugins.splice(plugins.indexOf('--path'), 2); plugins.indexOf('--path') !== -1 && plugins.splice(plugins.indexOf('--path'), 1);
const persistInstalledPlugins = async () => { const persistInstalledPlugins = async () => {
const plugins:PackageData[] = [] const plugins:PackageData[] = []
@ -37,6 +37,7 @@ const persistInstalledPlugins = async () => {
async function run() { async function run() {
for (const plugin of plugins) { for (const plugin of plugins) {
if(installFromPath) { if(installFromPath) {
console.log(`Installing plugin from path: ${plugin}`);
await linkInstaller.installFromPath(plugin); await linkInstaller.installFromPath(plugin);
continue; continue;
} }