mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Fix file paths
This commit is contained in:
parent
0f6effbdbb
commit
e5d7cce49c
1 changed files with 2 additions and 2 deletions
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