From 45d05c0599398a9c31af20c98ce442aaf8d48858 Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Thu, 29 Dec 2022 12:01:21 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20set=20envs=20as=20environ?= =?UTF-8?q?ment=20variable=20instead=20of=20=20bash=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Prashant Shahi --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 48b2e0b..6eb7ed6 100644 --- a/plugin.go +++ b/plugin.go @@ -103,7 +103,7 @@ func (p Plugin) exec(host string, wg *sync.WaitGroup, errChannel chan error) { for _, key := range p.Config.Envs { key = strings.ToUpper(key) if val, found := os.LookupEnv(key); found { - env = append(env, key+"="+escapeArg(val)) + env = append(env, "export "+key+"="+escapeArg(val)) } }