From 75acdc87f389777278c63421496b2b77ef500365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Tue, 8 Jul 2025 09:35:37 +0200 Subject: [PATCH] imprv: restrict ics file search to collection depth --- src/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.sh b/src/main.sh index e938148..45d3cbb 100644 --- a/src/main.sh +++ b/src/main.sh @@ -22,7 +22,7 @@ if [ ! "${SCRIPT_LOADED:-}" ]; then fi __lines() { - find "$ROOT" -type f -name '*.ics' -print0 | xargs -0 -P 0 \ + find "$ROOT" -mindepth 2 -maxdepth 2 -type f -name '*.ics' -print0 | xargs -0 -P 0 \ awk \ -v collection_labels="$COLLECTION_LABELS" \ -v flag_open="$FLAG_OPEN" \