diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-07-07 22:49:19 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-07-07 22:49:19 -0700 |
commit | fbab4a61a308f5267cb36ccdfb8614ca551df68c (patch) | |
tree | 6cbe53755f7e10a83b661d150aefa5f5381c838c | |
parent | 48cc899a162ee2749b8c6b2e68914b6274176889 (diff) |
better find
-rwxr-xr-x | home/xyz/.local/bin/upd | 2 |
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 } |