Use PathListSeparator (#408)

In PR #406 I used PathSeparator and I should have used PathListSeparator.
 See: https://golang.org/pkg/os/#pkg-constants
This commit is contained in:
Wink Saville 2020-11-04 11:54:48 -08:00 committed by GitHub
parent 8204ef4b82
commit 3f3de6e0b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ 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, os.Getenv("PATH"))
env["PATH"] = strings.Join(s, string(os.PathSeparator)) env["PATH"] = strings.Join(s, string(os.PathListSeparator))
} }
for k, v := range env { for k, v := range env {