File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ cluster: ## Launch an Elasticsearch cluster with Docker
249
249
ifeq ($(origin nodes ) , undefined)
250
250
$(eval nodes = 1)
251
251
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)
253
253
ifeq ($(shell test $(nodes ) && test $(nodes ) -gt 1; echo $$? ) ,0)
254
254
$(eval detached ?= "true")
255
255
else
@@ -311,14 +311,14 @@ endif
311
311
}
312
312
ifdef detached
313
313
@{ \
314
- echo "\033[2m→ Waiting for the cluster...\033[0m"; \
314
+ printf "\033[2m→ Waiting for the cluster...\033[0m\n "; \
315
315
docker run --network elasticsearch --rm appropriate/curl --max-time 120 --retry 120 --retry-delay 1 --retry-connrefused --show-error --silent http://es1:9200; \
316
316
output="\033[2m→ Cluster ready; to remove containers:"; \
317
317
output="$$output docker rm -f"; \
318
318
for n in `seq 1 $(nodes)`; do \
319
319
output="$$output es$$n"; \
320
320
done; \
321
- echo "$$output\033[0m"; \
321
+ printf "$$output\033[0m\n "; \
322
322
}
323
323
endif
324
324
You can’t perform that action at this time.
0 commit comments