add mirror ranking
This commit is contained in:
parent
c85b98c583
commit
d399e1de3b
2 changed files with 18 additions and 0 deletions
17
bin/mirrors
Executable file
17
bin/mirrors
Executable 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
|
|
@ -47,6 +47,7 @@ if [ "$1" -ge 1 ]; then
|
||||||
npm \
|
npm \
|
||||||
oh-my-zsh-git \
|
oh-my-zsh-git \
|
||||||
python-pywal \
|
python-pywal \
|
||||||
|
rate-mirrors \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
rsync \
|
rsync \
|
||||||
rubygems \
|
rubygems \
|
||||||
|
|
Loading…
Add table
Reference in a new issue