mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Fix typo when getting config dir based on GOMUKS_ROOT
This commit is contained in:
parent
a2d6d97483
commit
996fe62a21
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue