Don't override $(PATH) environment variable.
This commit is contained in:
parent
573657976c
commit
9d94718869
@ -358,6 +358,10 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
|
||||
// Setup environment variables.
|
||||
var env []string
|
||||
for key, val := range cfg.Env {
|
||||
// Don't override $PATH.
|
||||
if key == "PATH" {
|
||||
continue
|
||||
}
|
||||
env = append(env, fmt.Sprintf("%s=%s", key, val))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user