From 6247dc961ce6f7743005715c034dd19e29860b0f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 27 Mar 2021 23:12:47 +0300 Subject: feat: set entry country to BY in mirrorlist script --- .local/bin/update-mirrorlist.sh | 9 +++++++++ .local/bin/update_mirrorlist.sh | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100755 .local/bin/update-mirrorlist.sh delete mode 100755 .local/bin/update_mirrorlist.sh diff --git a/.local/bin/update-mirrorlist.sh b/.local/bin/update-mirrorlist.sh new file mode 100755 index 0000000..958c194 --- /dev/null +++ b/.local/bin/update-mirrorlist.sh @@ -0,0 +1,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 diff --git a/.local/bin/update_mirrorlist.sh b/.local/bin/update_mirrorlist.sh deleted file mode 100755 index 551a0c7..0000000 --- a/.local/bin/update_mirrorlist.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/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 -- cgit v1.2.3