fix compile errors

This commit is contained in:
Matthew R. Kasun
2022-02-08 22:31:17 -05:00
parent a545643172
commit 2f6439654a
3 changed files with 11 additions and 14 deletions

View File

@@ -34,11 +34,8 @@ func Join(cfg config.ClientConfig, privateKey string) error {
if err != nil {
ncutils.PrintLog("error removing services: "+err.Error(), 1)
}
if ncutils.IsFreebsd() {
err = daemon.RemoveFreebsdDaemon()
}
if err != nil {
ncutils.PrintLog("error removing services: "+err.Error(), 1)
if ncutils.IsFreeBSD() {
daemon.RemoveFreebsdDaemon()
}
}
} else {