mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: Fix bug with rootUrls not being properly parsed when signing a private plugin. (#43014)
* fix plugin sign * modify urls * back to urls... * code format
This commit is contained in:
parent
8e0da70026
commit
e79254d9aa
@ -200,7 +200,21 @@ export const run = (includeInternalScripts = false) => {
|
||||
program
|
||||
.command('plugin:sign')
|
||||
.option('--signatureType <type>', 'Signature Type')
|
||||
.option('--rootUrls <urls...>', 'Root URLs')
|
||||
.option(
|
||||
'--rootUrls <urls...>',
|
||||
'Root URLs',
|
||||
function (url: string, urls: string[]) {
|
||||
if (typeof url !== 'string') {
|
||||
return urls;
|
||||
}
|
||||
|
||||
const parts = url.split(',');
|
||||
urls.push(...parts);
|
||||
|
||||
return urls;
|
||||
},
|
||||
[]
|
||||
)
|
||||
.description('Create a plugin signature')
|
||||
.action(async (cmd) => {
|
||||
await execTask(pluginSignTask)({
|
||||
|
Loading…
Reference in New Issue
Block a user