This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new adb079097c change script to use loop in stead of mapfile, fixes #7637 
(#7638)
adb079097c is described below

commit adb079097c75d2e2323b9d4e4cdfecf8b6b98ccf
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Mon Jul 27 10:51:10 2026 +0200

    change script to use loop in stead of mapfile, fixes #7637 (#7638)
---
 tools/generate-full-client-env.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/generate-full-client-env.sh 
b/tools/generate-full-client-env.sh
index 7190f3e73f..36d97d86e9 100755
--- a/tools/generate-full-client-env.sh
+++ b/tools/generate-full-client-env.sh
@@ -31,8 +31,13 @@ fi
 
 mkdir -p "$(dirname "${OUT}")"
 
-# Extract artifactIds (lines like "  - artifactId: hop-tech-parquet")
-mapfile -t ARTIFACTS < <(sed -n 's/^[[:space:]]*- 
artifactId:[[:space:]]*\(.*\)$/\1/p' "${REGISTRY}")
+# Extract artifactIds (lines like "  - artifactId: hop-tech-parquet").
+# Use a read loop instead of `mapfile` (bash 4+) so this also runs on
+# older bash configurations
+ARTIFACTS=()
+while IFS= read -r artifact; do
+  ARTIFACTS+=("${artifact}")
+done < <(sed -n 's/^[[:space:]]*- artifactId:[[:space:]]*\(.*\)$/\1/p' 
"${REGISTRY}")
 
 if [[ ${#ARTIFACTS[@]} -eq 0 ]]; then
   echo "No plugins found in ${REGISTRY}" >&2

Reply via email to