Compare commits

..

2 commits

Author SHA1 Message Date
Lilian Jónsdóttir fa5a4ecc3b version bump - v0.2.2
- fix extra / in paths
2024-05-07 16:25:03 -07:00
Lilian Jónsdóttir 64bf6863e5 fix extra / in paths 2024-05-07 16:24:08 -07:00
2 changed files with 7 additions and 2 deletions

View file

@ -22,7 +22,7 @@ import (
const ( const (
name string = "agedit" name string = "agedit"
usage string = "Edit age encrypted files with your $EDITOR" usage string = "Edit age encrypted files with your $EDITOR"
version string = "0.2.1" version string = "0.2.2"
help_template string = `NAME: help_template string = `NAME:
{{.Name}} {{if .Version}}v{{.Version}}{{end}} - {{.Usage}} {{.Name}} {{if .Version}}v{{.Version}}{{end}} - {{.Usage}}

7
pkg/env/env.go vendored
View file

@ -108,7 +108,12 @@ func make_path(paths ...string) string {
} }
for _, path := range paths { 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() return output.String()