mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Use $HOME instead ~ to find the gnupg directory.
This commit is contained in:
@@ -246,7 +246,7 @@ func (key *MasterKey) gpgHome() string {
|
||||
if dir == "" {
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
return "~/.gnupg"
|
||||
return path.Join(os.Getenv("HOME"), "/.gnupg")
|
||||
}
|
||||
return path.Join(usr.HomeDir, ".gnupg")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user