From f0cb4f4b3fe1c3c7e99f469ce94ac929526709db Mon Sep 17 00:00:00 2001 From: redanthrax Date: Wed, 22 Jun 2022 15:44:34 -0700 Subject: [PATCH] fixed for build --- agent/agent_windows.go | 2 +- agent/{install_linux.go => install_unix.go} | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) rename agent/{install_linux.go => install_unix.go} (96%) diff --git a/agent/agent_windows.go b/agent/agent_windows.go index 0912cd2..9df3eb5 100644 --- a/agent/agent_windows.go +++ b/agent/agent_windows.go @@ -797,7 +797,7 @@ func (a *Agent) RecoverMesh() { } func (a *Agent) getMeshNodeID() (string, error) { - out, err := CMD(a.MeshSystemEXE, []string{"-nodeid"}, 10, false) + out, err := CMD(a.MeshSystemBin, []string{"-nodeid"}, 10, false) if err != nil { a.Logger.Debugln(err) return "", err diff --git a/agent/install_linux.go b/agent/install_unix.go similarity index 96% rename from agent/install_linux.go rename to agent/install_unix.go index 4cda3c5..f41da59 100644 --- a/agent/install_linux.go +++ b/agent/install_unix.go @@ -1,3 +1,6 @@ +//go:build !windows +// +build !windows + /* Copyright 2022 AmidaWare LLC.