From 64bf6863e5bdd3451d0b97767b9f02ccdf31392c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Tue, 7 May 2024 16:24:08 -0700 Subject: [PATCH] fix extra / in paths --- pkg/env/env.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()