Skip to content

Commit aff00e5

Browse files
committed
Makefile: Fix formatted command output
1 parent 1463ac9 commit aff00e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ cluster: ## Launch an Elasticsearch cluster with Docker
249249
ifeq ($(origin nodes), undefined)
250250
$(eval nodes = 1)
251251
endif
252-
@printf "\033[2m→ Launching" $(nodes) "node(s) of" $(version) "...\033[0m\n"
252+
@printf "\033[2m→ Launching %d node(s) of %s...\033[0m\n" $(nodes) $(version)
253253
ifeq ($(shell test $(nodes) && test $(nodes) -gt 1; echo $$?),0)
254254
$(eval detached ?= "true")
255255
else
@@ -311,14 +311,14 @@ endif
311311
}
312312
ifdef detached
313313
@{ \
314-
echo "\033[2m→ Waiting for the cluster...\033[0m"; \
314+
printf "\033[2m→ Waiting for the cluster...\033[0m\n"; \
315315
docker run --network elasticsearch --rm appropriate/curl --max-time 120 --retry 120 --retry-delay 1 --retry-connrefused --show-error --silent http://es1:9200; \
316316
output="\033[2m→ Cluster ready; to remove containers:"; \
317317
output="$$output docker rm -f"; \
318318
for n in `seq 1 $(nodes)`; do \
319319
output="$$output es$$n"; \
320320
done; \
321-
echo "$$output\033[0m"; \
321+
printf "$$output\033[0m\n"; \
322322
}
323323
endif
324324

0 commit comments

Comments
 (0)