Use static initial PATH (#462)

This commit is contained in:
Cat™ 2021-01-12 06:27:16 +00:00 committed by GitHub
parent fecc571bce
commit a9b3d6426b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ func (sc *StepContext) setupEnv() common.Executor {
}
if (rc.ExtraPath != nil) && (len(rc.ExtraPath) > 0) {
s := append(rc.ExtraPath, os.Getenv("PATH"))
env["PATH"] = strings.Join(s, string(os.PathListSeparator))
s := append(rc.ExtraPath, `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`)
env["PATH"] = strings.Join(s, `:`)
}
for k, v := range env {