kopia lustrzana https://github.com/openmaptiles/openmaptiles
Detect sql warnings and abort quickstart
If quickstart generates an SQL `WARNING` while running the import-sql script, abort.pull/743/head
rodzic
ef3b0b04d0
commit
d46af923dd
|
@ -251,7 +251,10 @@ echo " "
|
|||
echo "-------------------------------------------------------------------------------------"
|
||||
echo "====> : Start SQL postprocessing: ./build/tileset.sql -> PostgreSQL "
|
||||
echo " : Source code: https://github.com/openmaptiles/openmaptiles-tools/tree/master/docker/import-sql "
|
||||
docker-compose run $DC_OPTS openmaptiles-tools import-sql
|
||||
# If the output contains a WARNING, stop further processing
|
||||
# Adapted from https://unix.stackexchange.com/questions/307562
|
||||
docker-compose run $DC_OPTS openmaptiles-tools import-sql | \
|
||||
awk -v s=": WARNING:" '$0~s{print; print "\n*** WARNING detected, aborting"; exit(1)} 1'
|
||||
|
||||
echo " "
|
||||
echo "-------------------------------------------------------------------------------------"
|
||||
|
|
Ładowanie…
Reference in New Issue