Skip to content

Commit

Permalink
GEOMESA-3378 Fix CLI "find" warning output
Browse files Browse the repository at this point in the history
* The warning in RHEL8 is "find: warning you have specified the -maxdepth option after a non-argument -type"
  • Loading branch information
amcdonaldccri authored Jul 19, 2024
1 parent 947a09b commit 57d446b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geomesa-tools/conf-filtered/geomesa-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}")
Expand Down

0 comments on commit 57d446b

Please sign in to comment.