Skip to content

Commit

Permalink
Fix check for docker buildx (#1159)
Browse files Browse the repository at this point in the history
Signed-off-by: Pinto Spindler, Stephan <25225092+s-spindler@users.noreply.github.com>
  • Loading branch information
s-spindler committed Aug 18, 2023
1 parent 4d685e2 commit 967a46a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -92,7 +92,7 @@ generate:
# build bins for goos/goarch of current host
.PHONY: build_bins
build_bins:
goreleaser build --clean --snapshot --single-target
goreleaser build --clean --snapshot --single-target

# Build bins and copy to ./bin to align with docs
# Separate build_bins as its own target to ensure (workaround) goreleaser finish writing dist/artifacts.json
Expand Down Expand Up @@ -146,8 +146,8 @@ check-docker-tool-check:
# Check that docker buildx is installed.
.PHONY: check-docker-buildx-tool-check
check-docker-buildx-tool-check:
@if ! command -v docker buildx >/dev/null 2>&1; then \
echo "'$(CONTAINER)' builx is not installed. Please install '$(CONTAINER)' buildx and try again."; \
@if ! docker buildx >/dev/null 2>&1; then \
echo "'$(CONTAINER)' buildx is not installed. Please install '$(CONTAINER)' buildx and try again."; \
exit 1; \
fi

Expand Down

0 comments on commit 967a46a

Please sign in to comment.