Only select mirrors for arch in the first run

This commit is contained in:
2025-02-23 15:22:27 +00:00
parent d73a617039
commit 13ebd47b32

View File

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