Compare commits
No commits in common. "fa5a4ecc3be0d9b790ecdaa12eb25f2b6978f542" and "7d24d5e70b44ed361d23ad540e8a888fb9a348b0" have entirely different histories.
fa5a4ecc3b
...
7d24d5e70b
|
@ -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.2"
|
version string = "0.2.1"
|
||||||
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
7
pkg/env/env.go
vendored
|
@ -108,12 +108,7 @@ func make_path(paths ...string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, path := range paths {
|
for _, path := range paths {
|
||||||
// don't add / to the end if it's there
|
output.WriteString(path + sep)
|
||||||
if strings.HasSuffix(path, sep) {
|
|
||||||
output.WriteString(path)
|
|
||||||
} else {
|
|
||||||
output.WriteString(path + sep)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return output.String()
|
return output.String()
|
||||||
|
|
Loading…
Reference in a new issue