fix extra / in paths
This commit is contained in:
parent
7d24d5e70b
commit
64bf6863e5
5
pkg/env/env.go
vendored
5
pkg/env/env.go
vendored
|
@ -108,8 +108,13 @@ func make_path(paths ...string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, path := range paths {
|
for _, path := range paths {
|
||||||
|
// don't add / to the end if it's there
|
||||||
|
if strings.HasSuffix(path, sep) {
|
||||||
|
output.WriteString(path)
|
||||||
|
} else {
|
||||||
output.WriteString(path + sep)
|
output.WriteString(path + sep)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return output.String()
|
return output.String()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue