瀏覽代碼

Merge pull request #688 from Morganamilo/expandenv

Fix builddir defaulting to config instead of cache
Anna 6 年之前
父節點
當前提交
7133a1252e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      config.go

+ 3 - 3
config.go

@@ -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"