Skip to content

Commit

Permalink
GEOMESA-3382 CLI - fix classpath lookup in Bash 4.3 and earlier (#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
elahrvivaz authored Aug 6, 2024
1 parent 8e91933 commit 740a50b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geomesa-tools/conf-filtered/geomesa-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ function find_jars() {
find_args=("-maxdepth" "1" "${find_args[@]}")
fi
# read results of find into jars array
mapfile -d '' jars < <(find "-L" "$home" "${find_args[@]}")
# don't use mapfile to support bash < 4.4 (RHEL 7)
while IFS= read -r -d $'\0'; do
jars+=("$REPLY")
done < <(find "-L" "$home" "${find_args[@]}")
if [[ -d "${home}/native" ]]; then
# TODO this doesn't export back to the parent shell... fix it
if [[ -z "${JAVA_LIBRARY_PATH}" ]]; then
Expand Down

0 comments on commit 740a50b

Please sign in to comment.