mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 12:16:45 +02:00
Added support for installing a specific version of a plugin. (#6294)
This commit is contained in:
parent
ed1c5dd184
commit
ccd4f52150
@ -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…
x
Reference in New Issue
Block a user