add use-country-mirrors script

This commit is contained in:
LordMZTE 2023-08-01 14:41:40 +02:00
parent 64cb69dba5
commit aec200b925
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

10
scripts/use-country-mirrors.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
set -ex
# This is a small wrapper script that uses reflector to update the pacman mirrors
# using the fastest servers of a given country.
reflector \
--country "$1" \
--fastest 10 \
--save /etc/pacman.d/mirrorlist