From e52c6c7ca9005f9a82eebccd88fe8238b80bc77a Mon Sep 17 00:00:00 2001 From: Brandon Nelson Date: Wed, 15 Mar 2017 11:42:08 -0700 Subject: [PATCH] Adds the current master env to our testing env --- proc_master.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc_master.go b/proc_master.go index e2be659..3d2686a 100644 --- a/proc_master.go +++ b/proc_master.go @@ -269,7 +269,7 @@ func (mp *master) fetch() { //overseer sanity check, dont replace our good binary with a non-executable file tokenIn := token() cmd := exec.Command(tmpBinPath) - cmd.Env = []string{envBinCheck + "=" + tokenIn} + cmd.Env = append(os.Environ(), []string{envBinCheck + "=" + tokenIn}...) returned := false go func() { time.Sleep(5 * time.Second)