Skip to content

Commit

Permalink
fixup PopEnv helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed May 31, 2017
1 parent 2b233a6 commit 9890f9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion awstesting/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ func PopEnv(env []string) {

for _, e := range env {
p := strings.SplitN(e, "=", 2)
os.Setenv(p[0], p[1])
k, v := p[0], ""
if len(p) > 1 {
v = p[1]
}
os.Setenv(k, v)
}
}

0 comments on commit 9890f9d

Please sign in to comment.