mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
While at it, also using "ctrld uninstall" on unix platform, ensuring everything is cleanup properly.
17 lines
291 B
Go
17 lines
291 B
Go
//go:build !unix
|
|
|
|
package cli
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/rs/zerolog"
|
|
)
|
|
|
|
func selfUninstall(err error, p *prog, logger zerolog.Logger) {
|
|
if uninstallIfInvalidCdUID(err, p, logger) {
|
|
logger.Warn().Msgf("service was uninstalled because device %q does not exist", cdUID)
|
|
os.Exit(0)
|
|
}
|
|
}
|