mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
Use static initial PATH (#462)
This commit is contained in:
parent
889a41562e
commit
e3c2db48e9
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) {
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue