Merge pull request #226 from apache/remove-readarray main
authorJan Lehnardt <jan@apache.org>
Thu, 21 Jul 2022 12:36:13 +0000 (14:36 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 12:36:13 +0000 (14:36 +0200)
remove unnecessary bash 4 requirement

3.2.2/Dockerfile
build.sh

index 727640739f155bf4db646b57fec7566c87741ada..62177b5042b0db2b3f313424a4e1d697cc7800d3 100644 (file)
@@ -54,7 +54,7 @@ RUN set -eux; \
     apt purge -y --autoremove curl; \
     rm -rf /var/lib/apt/lists/*
 
-ENV COUCHDB_VERSION 3.2.2
+ENV COUCHDB_VERSION 3.2.2-1
 
 RUN . /etc/os-release; \
     echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" | \
index e3f7cf225a02b82573821400e51cc1cdd8e114f5..e0ca3afb37c39febf87fb1db571ad1877326c16b 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -63,10 +63,8 @@ update_qemu() {
   # docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
   # docker rmi multiarch/qemu-user-static
   # use tonistiigi/binfmt instead.
-  # this requires bash 4.*, sorry jan!
   echo "Uninstalling all qemu emulators..."
-  readarray -t platforms < <(docker run --privileged tonistiigi/binfmt | jq -c '.emulators[] | select(. | contains("qemu"))')
-  for plat in "${platforms[@]}"; do
+  for plat in $(docker run --privileged tonistiigi/binfmt | jq -c '.emulators[] | select(. | contains("qemu"))'); do
     plat="${plat//\"}"
     docker run --privileged tonistiigi/binfmt --uninstall $plat >/dev/null 2>&1
   done