diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-06-25 19:21:55 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-06-25 19:21:55 -0700 |
commit | 69b2b14f08795d205715d9aa3378a600cd3d8ea3 (patch) | |
tree | fc74850190a56db73a175b3df53662dd617f64d7 /sh | |
parent | eeac5b9ab0ba386dc4fe86efcbb79005ba23e779 (diff) |
fix: upd consider xyzaa reflector get cn mirrorlists
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/upd | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -218,11 +218,11 @@ refl () { # rsync may need to change XferCommand in /etc/pacman.conf # https://www.reddit.com/r/archlinux/comments/mynw6e/rsync_mirrors_with_pacman/ # need --delay so no super out of sync mirrors - if [ "$hostname" != xyzia ]; then - sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country us --protocol https --delay 1 --latest 25 --score 25 --fastest 10 - else - sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country ro --protocol https --delay 1 --fastest 3 - fi + case "$hostname" in + xyzia) sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country ro --protocol https --delay 1 --fastest 3;; + xyzaa) sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country cn --protocol https --delay 1 --fastest 2;; + *) sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country us --protocol https --delay 1 --latest 25 --score 25 --fastest 10;; + esac } music () { |