From eeb33faada840a8eddfdf71754d7612ce672a02d Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sat, 3 May 2025 01:54:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Arch=20Linux=20=E5=AE=89=E8=A3=9Dyay?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E5=AF=AB=E5=8F=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../run_onchange_before_linux-install-packages.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl index 1a0bdaf..b2c7fc3 100644 --- a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl @@ -161,6 +161,8 @@ fi {{ else -}} if ! command -v yay &> /dev/null; then if [ "$EUID" -ne 0 ]; then + git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si + else mkdir -p /tmp/yay-build useradd -m -G wheel builder && passwd -d builder chown -R builder:builder /tmp/yay-build @@ -168,8 +170,6 @@ if ! command -v yay &> /dev/null; then su - builder -c "git clone https://aur.archlinux.org/yay-bin.git /tmp/yay-build/yay" su - builder -c "cd /tmp/yay-build/yay && makepkg -si --noconfirm" rm -rf /tmp/yay-build - else - git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si fi fi {{ end -}}