Skip to content

Commit

Permalink
use POSIX compliant way to redirect file descriptor (#919)
Browse files Browse the repository at this point in the history
Signed-off-by: Sunny Yip <sunny@kusari.dev>
  • Loading branch information
sunnyyip committed Jun 6, 2023
1 parent a2d5192 commit 2dff95e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -119,31 +119,31 @@ stop-service:

.PHONY: check-docker-tool-check
check-docker-tool-check:
@if ! command -v $(CONTAINER) &> /dev/null; then \
@if ! command -v $(CONTAINER) >/dev/null 2>&1; then \
echo "'$(CONTAINER)' is not installed. Please install '$(CONTAINER)' and try again. Or set the CONTAINER variable to a different container runtime engine."; \
exit 1; \
fi

# Check that protoc is installed.
.PHONY: check-protoc-tool-check
check-protoc-tool-check:
@if ! command -v protoc &> /dev/null; then \
@if ! command -v protoc >/dev/null 2>&1; then \
echo "Protoc is not installed. Please install Protoc and try again."; \
exit 1; \
fi

# Check that golangci-lint is installed.
.PHONY: check-golangci-lint-tool-check
check-golangci-lint-tool-check:
@if ! command -v golangci-lint &> /dev/null; then \
@if ! command -v golangci-lint >/dev/null 2>&1; then \
echo "Golangci-lint is not installed. Please install Golangci-lint and try again."; \
exit 1; \
fi

# Check that mockgen is installed.
.PHONY: check-mockgen-tool-check
check-mockgen-tool-check:
@if ! command -v mockgen &> /dev/null; then \
@if ! command -v mockgen >/dev/null 2>&1; then \
echo "mockgen is not installed. Please install mockgen and try again."; \
exit 1; \
fi
Expand Down

0 comments on commit 2dff95e

Please sign in to comment.