summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/upd
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/upd')
-rwxr-xr-xhome/xyz/.local/bin/upd11
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