Skip to content

Commit bb767bc

Browse files
committed
Copy existing environment
1 parent b5dedc4 commit bb767bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/release/release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func githubCreateRelease(version string) {
177177
func run(cmd string, args []string, envVars map[string]string) error {
178178
c := exec.Command(cmd, args...)
179179
if envVars != nil {
180+
c.Env = append(c.Env, os.Environ()...)
180181
for k, v := range envVars {
181182
c.Env = append(c.Env, fmt.Sprintf("%s=%s", k, v))
182183
}

0 commit comments

Comments
 (0)