Fix file paths

This commit is contained in:
morganamilo 2018-06-05 14:14:49 +01:00
parent 0f6effbdbb
commit e5d7cce49c
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -12,9 +12,9 @@ import (
func setPaths() error { func setPaths() error {
if _configHome, set := os.LookupEnv("XDG_CONFIG_HOME"); set { if _configHome, set := os.LookupEnv("XDG_CONFIG_HOME"); set {
cacheHome = filepath.Join(_configHome, "yay") configHome = filepath.Join(_configHome, "yay")
} else if _configHome, set := os.LookupEnv("HOME"); set { } else if _configHome, set := os.LookupEnv("HOME"); set {
cacheHome = filepath.Join(_configHome, ".config/yay") configHome = filepath.Join(_configHome, ".config/yay")
} else { } else {
fmt.Errorf("XDG_CONFIG_HOME and HOME unset") fmt.Errorf("XDG_CONFIG_HOME and HOME unset")
} }