From 57d446b71a2459cba41cb02b1f4f566f69894816 Mon Sep 17 00:00:00 2001 From: amcdonaldccri Date: Fri, 19 Jul 2024 16:20:12 -0400 Subject: [PATCH] GEOMESA-3378 Fix CLI "find" warning output * The warning in RHEL8 is "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 f6338f9fb215..d1d14f9813bd 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[@]}")