summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-07-07 22:49:19 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-07-07 22:49:19 -0700
commitfbab4a61a308f5267cb36ccdfb8614ca551df68c (patch)
tree6cbe53755f7e10a83b661d150aefa5f5381c838c
parent48cc899a162ee2749b8c6b2e68914b6274176889 (diff)
better find
-rwxr-xr-xhome/xyz/.local/bin/upd2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd
index d7607723..64f5a8e6 100755
--- a/home/xyz/.local/bin/upd
+++ b/home/xyz/.local/bin/upd
@@ -45,7 +45,7 @@ checkrebuild: $(checkrebuild | awk '$2!~"zoom|miniconda3"{printf("%s ",$2)}')
qb () {
sudo systemctl stop qbittorrent-nox@xyz.service
- find "$XDG_DATA_HOME/qBittorrent/nova3/engines" -maxdepth 1 -type f -name 'jackett*' -prune -o -type f -name '__init__.py' -prune -o -type f -print -delete
+ find "$XDG_DATA_HOME/qBittorrent/nova3/engines" -maxdepth 1 -type f ! -name 'jackett*' -a ! -name '__init__.py' -delete
curlqb "$XDG_DATA_HOME/qBittorrent/nova3/engines"
sudo systemctl start qbittorrent-nox@xyz.service
}