summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalserver/updatedb.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/localserver/updatedb.sh b/localserver/updatedb.sh
index 99ec50b..6f2ae53 100755
--- a/localserver/updatedb.sh
+++ b/localserver/updatedb.sh
@@ -7,6 +7,10 @@ export CMD="mysql -u evol -pevol evol"
function run {
echo "Running $1"
$CMD <${SQLDIR}/$1
+ if [ "$1" != 0 ]; then
+ echo "Error $1"
+ exit $1
+ fi
}
if [[ -z "${VER}" ]]; then