This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch remove-readarray in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git
commit 7bb0dcc588ab375712e94135de89b553ab607ab8 Author: Robert Newson <[email protected]> AuthorDate: Thu Jul 21 11:16:37 2022 +0100 remove unnecessary bash 4 requirement --- build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.sh b/build.sh index e3f7cf2..e0ca3af 100755 --- 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
