Skip to content

Commit 27a33af

Browse files
authored
fix: make init error with docker check (#1072)
FIx issue when run `make init` `make[1]: *** [docker-compose-check] Error 1` Fix #1018
2 parents b46a421 + eabe46e commit 27a33af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ node-watch:
4242
@ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm -i nodejs "npm run watch"
4343

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

0 commit comments

Comments
 (0)