force-update does not require consumer URLs (ErrNoConsumer sentinel)

This commit is contained in:
mram
2026-09-21 09:05:46 +02:00
parent e46e92bee8
commit cedf28a809
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -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