diff --git a/internal/pkg/agent/application/paths/common.go b/internal/pkg/agent/application/paths/common.go index 87a3f0bcf74..a02467abe0f 100644 --- a/internal/pkg/agent/application/paths/common.go +++ b/internal/pkg/agent/application/paths/common.go @@ -264,5 +264,5 @@ func InstallPath(basePath string) string { // // This always points to the symlink that points to the latest Elastic Agent version. func TopBinaryPath() string { - return BinaryPath(Top(), BinaryName) + return filepath.Join(Top(), BinaryName) }