mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-04-27 14:57:40 +00:00
makedb.sh: fail if a command exits non-zero
In particular this better handles the case where the `g++` command fails (e.g. due to not having shapelib installed). The script should not continue if that command fails.
This commit is contained in:
parent
2f8dcc91f1
commit
4b122f5817
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
g++ builder.cpp -o builder -lshp
|
g++ builder.cpp -o builder -lshp
|
||||||
|
|
||||||
rm -rf out naturalearth timezone db.zip
|
rm -rf out naturalearth timezone db.zip
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue