Skip to content

Commit

Permalink
Merge pull request #1683 from marquiz/devel/hack
Browse files Browse the repository at this point in the history
hack/init-buildx.sh: fix broken patter matching
  • Loading branch information
k8s-ci-robot authored Apr 26, 2024
2 parents 21b624b + 38a38e5 commit f9ebb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/init-buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export DOCKER_CLI_EXPERIMENTAL=enabled
# AND if it isn't the docker driver, which doesn't work
current_builder="$(docker buildx inspect)"
# linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
if ! grep -q "^Driver: docker$" <<<"${current_builder}" && \
if ! grep -Eq "^Driver:\s*docker$" <<<"${current_builder}" && \
grep -q "linux/amd64" <<<"${current_builder}" && \
grep -q "linux/arm64" <<<"${current_builder}"; then
exit 0
Expand Down

0 comments on commit f9ebb36

Please sign in to comment.