find: specify global options (-maxdepth) before others.

This commit is contained in:
tastytea 2021-02-26 00:31:26 +01:00
parent 8fa4e9f903
commit f9e62efe73
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function main()
[[ -z "${max_videos}" ]] && local max_videos="last"
find "${download_dir}" -type f -mtime +"${keep_for_days}" -delete
find "${download_dir}" -type d -maxdepth 1 -exec \
find "${download_dir}" -maxdepth 1 -type d -exec \
rmdir --ignore-fail-on-non-empty {} \;
mkdir -p "${download_dir}"