From f9e62efe733659f72d388fb2cdd593e6413eecfd Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 26 Feb 2021 00:31:26 +0100 Subject: [PATCH] find: specify global options (-maxdepth) before others. --- download-yt-feeds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-yt-feeds b/download-yt-feeds index d86d97a..93a23a2 100755 --- a/download-yt-feeds +++ b/download-yt-feeds @@ -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}"