aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/update-mirrorlist.sh
blob: 958c194af4af0bddc4418a093838b05c6c7fa436 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Update mirrorlist

export TMPFILE=$(mktemp)

sudo true # Force password prompt in the beginning
rate-arch-mirrors --max-delay=21600 --entry-country=BY | tee -a $TMPFILE
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup
sudo mv $TMPFILE /etc/pacman.d/mirrorlist