find: specify global options (-maxdepth) before others.
This commit is contained in:
parent
8fa4e9f903
commit
f9e62efe73
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user