From eabe46e4c621ab2f86facb67ac16b1919ba9d63e Mon Sep 17 00:00:00 2001 From: Son Bui Date: Thu, 14 Nov 2024 10:23:45 +0700 Subject: [PATCH] fix: make init error with docker check Signed-off-by: Son Bui --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c052062fa9..131e9be37f 100644 --- a/Makefile +++ b/Makefile @@ -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)\""