From c588eae6425c6d11d4aa62523e71f0ebefc6a682 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Thu, 10 Apr 2025 21:56:20 +0200 Subject: [PATCH] add maxdepth to datapack search --- functions/datapack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/datapack b/functions/datapack index bf8fdec..8de7590 100644 --- a/functions/datapack +++ b/functions/datapack @@ -39,7 +39,7 @@ function datapack_list() { checkDatapackDir "${1}" local datapack_dir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}/data/world/datapacks" - local found_datapacks=($(find "$datapack_dir" -type f -print)) + local found_datapacks=($(find "$datapack_dir" -maxdepth 1 -type f -print)) if [[ "${#found_datapacks[@]}" -eq 0 ]]; then log i "No datapacks found for '$1'"