transmission: fix faulty "find" expression (thanks shellcheck!)
This commit is contained in:
@@ -69,12 +69,12 @@ let
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# remove noisy files:
|
# remove noisy files:
|
||||||
find "$MEDIA_DIR/" -type f \
|
find "$MEDIA_DIR/" -type f \(\
|
||||||
-iname 'www.YTS.*.jpg' \
|
-iname 'www.YTS.*.jpg' \
|
||||||
-o -iname 'WWW.YIFY*.COM.jpg' \
|
-o -iname 'WWW.YIFY*.COM.jpg' \
|
||||||
-o -iname 'YIFY*.com.txt' \
|
-o -iname 'YIFY*.com.txt' \
|
||||||
-o -iname 'YTS*.com.txt' \
|
-o -iname 'YTS*.com.txt' \
|
||||||
-exec rm {} \;
|
\) -exec rm {} \;
|
||||||
|
|
||||||
# dedupe the whole media library.
|
# dedupe the whole media library.
|
||||||
# yeah, a bit excessive: move this to a cron job if that's problematic.
|
# yeah, a bit excessive: move this to a cron job if that's problematic.
|
||||||
|
Reference in New Issue
Block a user