Skip to content

Commit

Permalink
fix: make init error with docker check (#1072)
Browse files Browse the repository at this point in the history
FIx issue when run `make init`

`make[1]: *** [docker-compose-check] Error 1`

Fix #1018
GSadee authored Nov 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents b46a421 + eabe46e commit 27a33af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -42,6 +42,6 @@ node-watch:
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm -i nodejs "npm run watch"

docker-compose-check:
@which $(DOCKER_COMPOSE) > /dev/null || (echo "Please install docker compose binary" && exit 1)
@$(DOCKER_COMPOSE) version >/dev/null 2>&1 || (echo "Please install docker compose binary or set DOCKER_COMPOSE=\"docker-compose\" for legacy binary" && exit 1)
@echo "You are using \"$(DOCKER_COMPOSE)\" binary"
@echo "Current version is \"$$($(DOCKER_COMPOSE) version)\""

0 comments on commit 27a33af

Please sign in to comment.