mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-06 15:17:12 -04:00
Fixed installing plugin.
This commit is contained in:
parent
cf9e0a2d93
commit
9956f77f22
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ if (thirdOptPlug && thirdOptPlug.includes('path')) {
|
|||
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 plugins:PackageData[] = []
|
||||
|
@ -37,6 +37,7 @@ const persistInstalledPlugins = async () => {
|
|||
async function run() {
|
||||
for (const plugin of plugins) {
|
||||
if(installFromPath) {
|
||||
console.log(`Installing plugin from path: ${plugin}`);
|
||||
await linkInstaller.installFromPath(plugin);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue