From 9dbef029f614af0804c441cc44627478c810338f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 24 Aug 2025 11:57:23 +0200 Subject: [PATCH] Stronger AUR available guard --- install/preflight/aur.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/preflight/aur.sh b/install/preflight/aur.sh index c9477d9a..ab57cb46 100644 --- a/install/preflight/aur.sh +++ b/install/preflight/aur.sh @@ -5,10 +5,12 @@ 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 + if curl -s --connect-timeout 30 --head -A "omarchy-update" https://aur.archlinux.org >/dev/null && + curl -sf -A "omarchy-update" "https://aur.archlinux.org/rpc/?v=5&type=info&arg=base" | + jq -e '.type=="info"' >/dev/null; then break else - echo -e "\n\e[31mAUR is unavailable. Retrying in 10 seconds.\e[0m" + echo -e "\n\e[31mAUR is unavailable. Retrying in 10 seconds...\e[0m" sleep 10 fi done