From 3f3de6e0b1cd8b3a38e2df386078445392ab3fe1 Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Wed, 4 Nov 2020 11:54:48 -0800 Subject: [PATCH] Use PathListSeparator (#408) In PR #406 I used PathSeparator and I should have used PathListSeparator. See: https://golang.org/pkg/os/#pkg-constants --- pkg/runner/step_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runner/step_context.go b/pkg/runner/step_context.go index 9331067..75542b0 100644 --- a/pkg/runner/step_context.go +++ b/pkg/runner/step_context.go @@ -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 {