add maxdepth to datapack search
This commit is contained in:
parent
5a517d12ad
commit
c588eae642
1 changed files with 1 additions and 1 deletions
|
@ -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'"
|
||||
|
|
Loading…
Reference in a new issue