diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-05-29 16:11:17 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-05-29 16:11:17 -0700 |
commit | 8ad621db55d251b016115bf52187805a407bc421 (patch) | |
tree | e27527332b82813e2549a9742adbf7fe5f6e2daa /home/xyz/.local | |
parent | fa37edcb7569491067354e03a16f425b092a3e93 (diff) |
upd, alarm no reflector
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/upd | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 43d317a5..23300878 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -5,7 +5,7 @@ all () { userjs clean #qb - refl + #refl usb #xmr } @@ -84,15 +84,15 @@ checkrebuild: $(checkrebuild | awk '$2!="zoom"{printf("%s ",$2)}') # curlqb "$HOME/programs/qbittorrent_search_plugins/" #} -refl () { - # why not use http: - # https://www.reddit.com/r/archlinux/comments/kx149z/should_i_use_http_mirrors/ - # https://www.reddit.com/r/archlinux/comments/ej4k4d/is_it_safe_to_use_not_secured_http_pacman_mirrors/ - # 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 - sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country us --protocol https --delay 1 --latest 25 --score 25 --fastest 10 -} +#refl () { +# # why not use http: +# # https://www.reddit.com/r/archlinux/comments/kx149z/should_i_use_http_mirrors/ +# # https://www.reddit.com/r/archlinux/comments/ej4k4d/is_it_safe_to_use_not_secured_http_pacman_mirrors/ +# # 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 +# sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country us --protocol https --delay 1 --latest 25 --score 25 --fastest 10 +#} usb () { cfg -l push usb @@ -119,7 +119,7 @@ usb () { if [ $# -eq 0 ]; then fast else - while getopts acfjmpru opt; do + while getopts acfjmpu opt; do case $opt in a)all;; c)clean;; @@ -128,7 +128,7 @@ else m)misc;; p)pac;; #q)qb;; - r)refl;; + #r)refl;; u)usb;; #x)xmr;; \?)exit 1;; |