From 38a38e57aa9926573096d70e868931a882e76c30 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 26 Apr 2024 16:04:37 +0300 Subject: [PATCH] hack/init-buildx.sh: fix broken patter matching --- hack/init-buildx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/init-buildx.sh b/hack/init-buildx.sh index ba41d60f5..12312c352 100755 --- a/hack/init-buildx.sh +++ b/hack/init-buildx.sh @@ -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