mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
Added support for installing a specific version of a plugin. (#6294)
This commit is contained in:
parent
ed1c5dd184
commit
ccd4f52150
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ const persistInstalledPlugins = async () => {
|
|||
async function run() {
|
||||
for (const plugin of registryPlugins) {
|
||||
console.log(`Installing plugin from registry: ${plugin}`)
|
||||
if (plugin.includes('@')) {
|
||||
const [name, version] = plugin.split('@');
|
||||
await linkInstaller.installPlugin(name, version);
|
||||
continue;
|
||||
}
|
||||
await linkInstaller.installPlugin(plugin);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue