add maxdepth to datapack search

This commit is contained in:
LinuxSquare 2025-04-10 21:56:20 +02:00
parent 5a517d12ad
commit c588eae642

View file

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