force-update does not require consumer URLs (ErrNoConsumer sentinel)
This commit is contained in:
@@ -299,6 +299,9 @@ func forceUpdateCommand(configPath string, elevatedChild bool) int {
|
||||
defer waitForEnter()
|
||||
}
|
||||
cfg, err := loadMergedConfig(configPath)
|
||||
if errors.Is(err, config.ErrNoConsumer) {
|
||||
err = nil // update settings do not depend on a consumer URL
|
||||
}
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "%s\n\ngpu-turnstile: %v\n", versionLine(), err)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user