From 6457ad290fb550bfe919f1f652439221c7758f63 Mon Sep 17 00:00:00 2001 From: redanthrax Date: Wed, 15 Jun 2022 15:03:13 -0700 Subject: [PATCH] refactor --- agent/install.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/install.go b/agent/install.go index f941836..af3654e 100644 --- a/agent/install.go +++ b/agent/install.go @@ -146,11 +146,11 @@ func (a *Agent) Install(i *Installer) { arch = "32" } - var installerMeshSystemEXE string + var installerMeshSystemBin string if len(i.MeshDir) > 0 { - installerMeshSystemEXE = filepath.Join(i.MeshDir, "MeshAgent.exe") + installerMeshSystemBin = filepath.Join(i.MeshDir, "MeshAgent.exe") } else { - installerMeshSystemEXE = a.MeshSystemBin + installerMeshSystemBin = a.MeshSystemBin } var meshNodeID string @@ -178,7 +178,7 @@ func (a *Agent) Install(i *Installer) { a.Logger.Debugln("Mesh agent:", mesh) time.Sleep(1 * time.Second) - meshNodeID, err = a.installMesh(mesh, installerMeshSystemEXE, i.Proxy) + meshNodeID, err = a.installMesh(mesh, installerMeshSystemBin, i.Proxy) if err != nil { a.installerMsg(fmt.Sprintf("Failed to install mesh agent: %s", err.Error()), "error", i.Silent) }