diff --git a/pkg/env/env.go b/pkg/env/env.go index b2c1fc3..08b78bc 100644 --- a/pkg/env/env.go +++ b/pkg/env/env.go @@ -108,7 +108,12 @@ func make_path(paths ...string) string { } for _, path := range paths { - output.WriteString(path + sep) + // don't add / to the end if it's there + if strings.HasSuffix(path, sep) { + output.WriteString(path) + } else { + output.WriteString(path + sep) + } } return output.String()