From 830f41888800e18a53bc2d58870ac1d56abd5828 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 1 Aug 2023 05:07:59 +0000 Subject: [PATCH] add timeout flag to installer closes #28 --- agent/install.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/install.go b/agent/install.go index 241d64b..35c354c 100644 --- a/agent/install.go +++ b/agent/install.go @@ -186,6 +186,7 @@ func (a *Agent) Install(i *Installer) { } else { opts := a.NewCMDOpts() opts.Command = fmt.Sprintf("%s -install --installPath=%s", meshOutput, nixMeshDir) + opts.Timeout = i.Timeout out := a.CmdV2(opts) if out.Status.Exit != 0 { a.Logger.Fatalln("Error installing mesh agent:", out.Stderr)