fix(updater): do not allow or set custom provider

This commit is contained in:
Quentin McGaw (desktop)
2022-01-22 22:23:14 +00:00
parent 779cb18590
commit fdc0db07e0
3 changed files with 16 additions and 2 deletions

View File

@@ -65,7 +65,12 @@ func (c *CLI) Update(ctx context.Context, args []string, logger UpdaterLogger) e
}
if updateAll {
options.Providers = constants.AllProviders()
for _, provider := range constants.AllProviders() {
if provider == constants.Custom {
continue
}
options.Providers = append(options.Providers, provider)
}
} else {
if csvProviders == "" {
return ErrNoProviderSpecified