aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/update_mirrorlist.sh
blob: 551a0c7f1fce4f26dedaa749eb6b05c78260b216 (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 | tee -a $TMPFILE
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup
sudo mv $TMPFILE /etc/pacman.d/mirrorlist