summaryrefslogtreecommitdiff
path: root/sh/upd
diff options
context:
space:
mode:
Diffstat (limited to 'sh/upd')
-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 () {