Fix typo when getting config dir based on GOMUKS_ROOT

This commit is contained in:
Tulir Asokan 2020-05-12 15:35:05 +03:00
parent a2d6d97483
commit 996fe62a21

View File

@ -134,7 +134,7 @@ func UserDownloadDir() (dir string, err error) {
func UserConfigDir() (dir string, err error) {
dir = os.Getenv("GOMUKS_CONFIG_HOME")
if dir == "" {
dir = getRootDir("cache")
dir = getRootDir("config")
}
if dir == "" {
dir, err = os.UserConfigDir()