From 4b122f58174130f2741008e68f7861addd97f2d4 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Fri, 24 Jan 2020 15:58:56 -0500 Subject: [PATCH] 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. --- database/builder/makedb.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/builder/makedb.sh b/database/builder/makedb.sh index 70e9cc9..24b08eb 100755 --- a/database/builder/makedb.sh +++ b/database/builder/makedb.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + g++ builder.cpp -o builder -lshp rm -rf out naturalearth timezone db.zip