From aaefc4f2087ad42f0c849ab2be97c5bfe2229dd2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 24 Aug 2025 11:54:19 +0200 Subject: [PATCH] Add an availability shield for AUR --- install/preflight/aur.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/preflight/aur.sh b/install/preflight/aur.sh index da71f43f..c9477d9a 100644 --- a/install/preflight/aur.sh +++ b/install/preflight/aur.sh @@ -3,6 +3,16 @@ # Install build tools sudo pacman -Sy --needed --noconfirm base-devel +# Ensure AUR is available +while true; do + if curl -s --retry 4 --connect-timeout 30 --head -A "omarchy-update" "https://aur.archlinux.org"; then + break + else + echo -e "\n\e[31mAUR is unavailable. Retrying in 10 seconds.\e[0m" + sleep 10 + fi +done + # Only add Chaotic-AUR if the architecture is x86_64 so ARM users can build the packages if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ] && ! command -v yay &>/dev/null; then # Try installing Chaotic-AUR keyring and mirrorlist