Use line buffering by awk in make import-sql (#962)
Resolve https://github.com/openmaptiles/openmaptiles/issues/958
This commit is contained in:
parent
232379b3ca
commit
1daacf354e
2
Makefile
2
Makefile
@ -364,7 +364,7 @@ import-borders: start-db-nowait
|
|||||||
.PHONY: import-sql
|
.PHONY: import-sql
|
||||||
import-sql: all start-db-nowait
|
import-sql: all start-db-nowait
|
||||||
$(DOCKER_COMPOSE) run $(DC_OPTS) openmaptiles-tools sh -c 'pgwait && import-sql' | \
|
$(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)),)
|
ifneq ($(wildcard $(AREA_DC_CONFIG_FILE)),)
|
||||||
DC_CONFIG_TILES := -f docker-compose.yml -f $(AREA_DC_CONFIG_FILE)
|
DC_CONFIG_TILES := -f docker-compose.yml -f $(AREA_DC_CONFIG_FILE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user