Skip to content

Commit

Permalink
Merge pull request jpillora#15 from Boxx/master-env-in-fetch
Browse files Browse the repository at this point in the history
Allows binaries that require env configuration at runtime to be tested
  • Loading branch information
jpillora authored Mar 16, 2017
2 parents cfea0d4 + e52c6c7 commit 8dea607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proc_master.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8dea607

Please sign in to comment.