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'"