Add an availability shield for AUR
This commit is contained in:
parent
ccf13e5902
commit
aaefc4f208
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user