Fix typo when getting config dir based on GOMUKS_ROOT
This commit is contained in:
parent
a2d6d97483
commit
996fe62a21
2
main.go
2
main.go
@ -134,7 +134,7 @@ func UserDownloadDir() (dir string, err error) {
|
|||||||
func UserConfigDir() (dir string, err error) {
|
func UserConfigDir() (dir string, err error) {
|
||||||
dir = os.Getenv("GOMUKS_CONFIG_HOME")
|
dir = os.Getenv("GOMUKS_CONFIG_HOME")
|
||||||
if dir == "" {
|
if dir == "" {
|
||||||
dir = getRootDir("cache")
|
dir = getRootDir("config")
|
||||||
}
|
}
|
||||||
if dir == "" {
|
if dir == "" {
|
||||||
dir, err = os.UserConfigDir()
|
dir, err = os.UserConfigDir()
|
||||||
|
Loading…
Reference in New Issue
Block a user