add mirror ranking

This commit is contained in:
Adam 2024-02-17 20:03:35 -05:00
parent c85b98c583
commit d399e1de3b
2 changed files with 18 additions and 0 deletions

17
bin/mirrors Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
. /etc/os-release
OS=$NAME
case "$OS" in
"Arch Linux")
rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist
;;
"Arch Linux ARM")
rate-mirrors archarm | sudo tee /etc/pacman.d/mirrorlist
;;
*)
echo "$OS is not supported by this script at this time."
exit 1
;;
esac

View file

@ -47,6 +47,7 @@ if [ "$1" -ge 1 ]; then
npm \
oh-my-zsh-git \
python-pywal \
rate-mirrors \
ripgrep \
rsync \
rubygems \