mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Fix builddir defaulting to config instead of cache
This commit is contained in:
parent
0e695468b8
commit
c004364864
@ -147,9 +147,9 @@ func (config *Configuration) saveConfig() error {
|
||||
}
|
||||
|
||||
func (config *Configuration) defaultSettings() {
|
||||
buildDir := "$HOME/.config/yay"
|
||||
if os.Getenv("XDG_CONFIG_HOME") != "" {
|
||||
buildDir = "$XDG_CONFIG_HOME/yay"
|
||||
buildDir := "$HOME/.cache/yay"
|
||||
if os.Getenv("XDG_CACHE_HOME") != "" {
|
||||
buildDir = "$XDG_CACHE_HOME/yay"
|
||||
}
|
||||
|
||||
config.AURURL = "https://aur.archlinux.org"
|
||||
|
Loading…
Reference in New Issue
Block a user