mirror of
https://github.com/Jguer/yay
synced 2024-08-31 05:39:29 +00:00
Fix file paths
This commit is contained in:
parent
0f6effbdbb
commit
e5d7cce49c
4
main.go
4
main.go
|
@ -12,9 +12,9 @@ import (
|
|||
|
||||
func setPaths() error {
|
||||
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 {
|
||||
cacheHome = filepath.Join(_configHome, ".config/yay")
|
||||
configHome = filepath.Join(_configHome, ".config/yay")
|
||||
} else {
|
||||
fmt.Errorf("XDG_CONFIG_HOME and HOME unset")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue