Skip to content

Commit

Permalink
Use PathListSeparator (nektos#408)
Browse files Browse the repository at this point in the history
In PR nektos#406 I used PathSeparator and I should have used PathListSeparator.
 See: https://golang.org/pkg/os/#pkg-constants
  • Loading branch information
winksaville authored Nov 4, 2020
1 parent 8204ef4 commit 3f3de6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/step_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ 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.PathSeparator))
env["PATH"] = strings.Join(s, string(os.PathListSeparator))
}

for k, v := range env {
Expand Down

0 comments on commit 3f3de6e

Please sign in to comment.