Only select mirrors for arch in the first run

This commit is contained in:
2025-02-23 15:22:27 +00:00
parent a1aea279b3
commit 170391da4e

View File

@@ -62,10 +62,10 @@ p() (
sudo pacman -Rsn $(pacman -Qdtq)
if [ ! "$(command -v reflector)" ]; then
sudo pacman -Sy --noconfirm reflector rsync curl
fi
iso=$(curl -4 ifconfig.co/country-iso)
extra="FR"
sudo reflector -a 48 -c $iso -c $extra -f 5 -l 30 --verbose --sort rate --save /etc/pacman.d/mirrorlist
fi
if [ ! "$(command -v paccache)" ]; then
sudo pacman -Sy --noconfirm pacman-contrib
fi