From e3bf801654e9ac8534ab211e5089009574d3b9f7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 26 Jul 2025 15:58:38 -0400 Subject: [PATCH] Don't add this twice on rerunning either --- install/preflight/aur.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/preflight/aur.sh b/install/preflight/aur.sh index 18659e3..525b17c 100644 --- a/install/preflight/aur.sh +++ b/install/preflight/aur.sh @@ -10,7 +10,9 @@ if [[ "$(uname -m)" == "x86_64" ]] && ! command -v yay &>/dev/null; then sudo pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'; then # Add Chaotic-AUR repo to pacman config - echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null + if ! grep -q "chaotic-aur" /etc/pacman.conf; then + echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null + fi # Install yay directly from Chaotic-AUR sudo pacman -Sy --needed --noconfirm yay