Skip to content
Permalink
Browse files
Merge pull request #226 from apache/remove-readarray
remove unnecessary bash 4 requirement
  • Loading branch information
janl committed Jul 21, 2022
2 parents d925a07 + 7bb0dcc commit 1759383589c61f7ba2089cefaad4cc36e2785390
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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

0 comments on commit 1759383

Please sign in to comment.