From 1daacf354ea58c33f256030b530baa7b28168052 Mon Sep 17 00:00:00 2001 From: zstadler Date: Mon, 10 Aug 2020 11:41:14 +0300 Subject: [PATCH] Use line buffering by `awk` in `make import-sql` (#962) Resolve https://github.com/openmaptiles/openmaptiles/issues/958 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 53859a3..1ce6e7c 100644 --- a/Makefile +++ b/Makefile @@ -364,7 +364,7 @@ import-borders: start-db-nowait .PHONY: import-sql import-sql: all start-db-nowait $(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools sh -c 'pgwait && import-sql' | \ - awk -v s=": WARNING:" '$$0~s{print; print "\n*** WARNING detected, aborting"; exit(1)} 1' + awk -v s=": WARNING:" '1{print; fflush()} $$0~s{print "\n*** WARNING detected, aborting"; exit(1)}' ifneq ($(wildcard $(AREA_DC_CONFIG_FILE)),) DC_CONFIG_TILES := -f docker-compose.yml -f $(AREA_DC_CONFIG_FILE)