mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 08:44:05 +08: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:
@ -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)({
|
||||
|
Reference in New Issue
Block a user