Use static initial PATH (#462)
This commit is contained in:
parent
fecc571bce
commit
a9b3d6426b
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ func (sc *StepContext) setupEnv() common.Executor {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc.ExtraPath != nil) && (len(rc.ExtraPath) > 0) {
|
if (rc.ExtraPath != nil) && (len(rc.ExtraPath) > 0) {
|
||||||
s := append(rc.ExtraPath, os.Getenv("PATH"))
|
s := append(rc.ExtraPath, `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`)
|
||||||
env["PATH"] = strings.Join(s, string(os.PathListSeparator))
|
env["PATH"] = strings.Join(s, `:`)
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v := range env {
|
for k, v := range env {
|
||||||
|
|
Loading…
Reference in a new issue