Fix install/remove success message (installd -> installed)
This commit is contained in:
@@ -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
|
||||
// the output can be read.
|
||||
func serviceCommand(configPath string, install, noCopy, elevatedChild bool) int {
|
||||
verb := "remove"
|
||||
verb, done := "remove", "removed"
|
||||
if install {
|
||||
verb = "install"
|
||||
verb, done = "install", "installed"
|
||||
}
|
||||
if !service.Elevated() {
|
||||
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)
|
||||
return code
|
||||
}
|
||||
fmt.Printf("service %s: %sd (elevated)\n", service.Name, verb)
|
||||
fmt.Printf("service %s: %s (elevated)\n", service.Name, done)
|
||||
return 0
|
||||
}
|
||||
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)
|
||||
return 1
|
||||
}
|
||||
fmt.Printf("service %s: %sd\n", service.Name, verb)
|
||||
fmt.Printf("service %s: %s\n", service.Name, done)
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user