Don't override $(PATH) environment variable.

This commit is contained in:
Shishir Mahajan 2020-09-16 13:48:28 -07:00
parent 573657976c
commit 9d94718869
No known key found for this signature in database
GPG Key ID: D41782E7688DEC4A

View File

@ -358,6 +358,10 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
// Setup environment variables. // Setup environment variables.
var env []string var env []string
for key, val := range cfg.Env { for key, val := range cfg.Env {
// Don't override $PATH.
if key == "PATH" {
continue
}
env = append(env, fmt.Sprintf("%s=%s", key, val)) env = append(env, fmt.Sprintf("%s=%s", key, val))
} }