mirror of
https://github.com/Jguer/yay.git
synced 2025-12-04 00:05:43 -05:00
Merge pull request #688 from Morganamilo/expandenv
Fix builddir defaulting to config instead of cache
This commit is contained in:
commit
7133a1252e
@ -147,9 +147,9 @@ func (config *Configuration) saveConfig() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (config *Configuration) defaultSettings() {
|
func (config *Configuration) defaultSettings() {
|
||||||
buildDir := "$HOME/.config/yay"
|
buildDir := "$HOME/.cache/yay"
|
||||||
if os.Getenv("XDG_CONFIG_HOME") != "" {
|
if os.Getenv("XDG_CACHE_HOME") != "" {
|
||||||
buildDir = "$XDG_CONFIG_HOME/yay"
|
buildDir = "$XDG_CACHE_HOME/yay"
|
||||||
}
|
}
|
||||||
|
|
||||||
config.AURURL = "https://aur.archlinux.org"
|
config.AURURL = "https://aur.archlinux.org"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user