1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Copy existing environment

This commit is contained in:
Ewout Prangsma 2018-03-13 14:38:34 +01:00
parent b5dedc4b35
commit bb767bc189
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -177,6 +177,7 @@ func githubCreateRelease(version string) {
func run(cmd string, args []string, envVars map[string]string) error {
c := exec.Command(cmd, args...)
if envVars != nil {
c.Env = append(c.Env, os.Environ()...)
for k, v := range envVars {
c.Env = append(c.Env, fmt.Sprintf("%s=%s", k, v))
}