1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

hack/init-buildx.sh: fix broken patter matching

This commit is contained in:
Markus Lehtonen 2024-04-26 16:04:37 +03:00
parent 21b624b494
commit 38a38e57aa

View file

@ -21,7 +21,7 @@ export DOCKER_CLI_EXPERIMENTAL=enabled
# AND if it isn't the docker driver, which doesn't work # AND if it isn't the docker driver, which doesn't work
current_builder="$(docker buildx inspect)" current_builder="$(docker buildx inspect)"
# linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6 # 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/amd64" <<<"${current_builder}" && \
grep -q "linux/arm64" <<<"${current_builder}"; then grep -q "linux/arm64" <<<"${current_builder}"; then
exit 0 exit 0