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:
parent
21b624b494
commit
38a38e57aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue