Fix install/remove success message (installd -> installed)

This commit is contained in:
mram
2026-09-21 08:08:24 +02:00
parent a0435c858e
commit 909918657f
+4 -4
View File
@@ -231,9 +231,9 @@ func newLogger(cfg config.Config) (*slog.Logger, io.Writer, io.Closer) {
// waits for a keypress so its console window does not flash closed before // waits for a keypress so its console window does not flash closed before
// the output can be read. // the output can be read.
func serviceCommand(configPath string, install, noCopy, elevatedChild bool) int { func serviceCommand(configPath string, install, noCopy, elevatedChild bool) int {
verb := "remove" verb, done := "remove", "removed"
if install { if install {
verb = "install" verb, done = "install", "installed"
} }
if !service.Elevated() { if !service.Elevated() {
args := append(append([]string{}, os.Args[1:]...), "--elevated-child") args := append(append([]string{}, os.Args[1:]...), "--elevated-child")
@@ -250,7 +250,7 @@ func serviceCommand(configPath string, install, noCopy, elevatedChild bool) int
fmt.Fprintf(os.Stderr, "gpu-turnstile service %s failed in the elevated process (exit %d)\n", verb, code) fmt.Fprintf(os.Stderr, "gpu-turnstile service %s failed in the elevated process (exit %d)\n", verb, code)
return code return code
} }
fmt.Printf("service %s: %sd (elevated)\n", service.Name, verb) fmt.Printf("service %s: %s (elevated)\n", service.Name, done)
return 0 return 0
} }
var err error var err error
@@ -273,7 +273,7 @@ func serviceCommand(configPath string, install, noCopy, elevatedChild bool) int
fmt.Fprintf(os.Stderr, "gpu-turnstile service %s: %v\n", verb, err) fmt.Fprintf(os.Stderr, "gpu-turnstile service %s: %v\n", verb, err)
return 1 return 1
} }
fmt.Printf("service %s: %sd\n", service.Name, verb) fmt.Printf("service %s: %s\n", service.Name, done)
return 0 return 0
} }