diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-07-07 22:08:14 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-07-07 22:08:14 -0700 |
commit | 6e73cdd6f1c50439ce10c99c85a4148c8a58d6b3 (patch) | |
tree | 8a0affcb51c3a57779937e118f8bcd75824a42d1 /home/xyz/.local/bin/upd | |
parent | 6bbde285e3635a77d344b0decc7a1fb5aea9c5ab (diff) |
configs curlqb and jackett
Diffstat (limited to 'home/xyz/.local/bin/upd')
-rwxr-xr-x | home/xyz/.local/bin/upd | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 96a5a912..48ae6629 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -3,7 +3,8 @@ all () { fast clean - refl + qb + #refl } clean () { @@ -42,6 +43,11 @@ checkrebuild: $(checkrebuild | awk '$2!~"zoom|miniconda3"{printf("%s ",$2)}') " } +qb () { + rm -r -- "$HOME/programs/qbittorrent_search_plugins/" + curlqb "$HOME/programs/qbittorrent_search_plugins/" +} + refl () { # why not use http: # https://www.reddit.com/r/archlinux/comments/kx149z/should_i_use_http_mirrors/ @@ -55,13 +61,14 @@ refl () { if [ $# -eq 0 ]; then fast else - while getopts acfmpr opt; do + while getopts acfmpqr opt; do case $opt in a)all;; c)clean;; f)fast;; m)misc;; p)pac;; + q)qb;; r)refl;; \?)exit 1;; esac |