From 908097708d6cec7f1429fe2644a7403627ecd40c Mon Sep 17 00:00:00 2001 From: andrew mcdonald Date: Thu, 18 Jul 2024 07:28:17 -0500 Subject: [PATCH] stops spamming the warning "find: warning you have specified the -maxdepth option after a non-argument -type" --- geomesa-tools/conf-filtered/geomesa-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geomesa-tools/conf-filtered/geomesa-env.sh b/geomesa-tools/conf-filtered/geomesa-env.sh index f6338f9fb21..d1d14f9813b 100644 --- a/geomesa-tools/conf-filtered/geomesa-env.sh +++ b/geomesa-tools/conf-filtered/geomesa-env.sh @@ -172,7 +172,7 @@ function find_jars() { local find_args find_args=("-type" "f" "-iname" "*.jar" "-not" "-iname" "*-sources.jar" "-not" "-iname" "*-tests.jar" "-print0") if [[ "$2" == "true" ]]; then - find_args+=("-maxdepth" "1") + find_args=("-maxdepth" "1" "${find_args[@]}") fi # read results of find into jars array mapfile -d '' jars < <(find "-L" "$home" "${find_args[@]}")