fix extra / in paths
This commit is contained in:
parent
7d24d5e70b
commit
64bf6863e5
7
pkg/env/env.go
vendored
7
pkg/env/env.go
vendored
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue