summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-06-25 19:21:55 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-06-25 19:21:55 -0700
commit69b2b14f08795d205715d9aa3378a600cd3d8ea3 (patch)
treefc74850190a56db73a175b3df53662dd617f64d7 /sh
parenteeac5b9ab0ba386dc4fe86efcbb79005ba23e779 (diff)
fix: upd consider xyzaa reflector get cn mirrorlists
Diffstat (limited to 'sh')
-rwxr-xr-xsh/upd10
1 files changed, 5 insertions, 5 deletions
diff --git a/sh/upd b/sh/upd
index 74ef5d2..a9bac97 100755
--- a/sh/upd
+++ b/sh/upd
@@ -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 () {