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:
parent
b5dedc4b35
commit
bb767bc189
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue