Skip to content

Commit 6c3c4f3

Browse files
committed
Fail in build.sh when RDBMS is unsupported
1 parent f7c4561 commit 6c3c4f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22

33
goal=
4-
if [ "$RDBMS" == "h2" ]; then
4+
if [ "$RDBMS" == "h2" ] || [ "$RDBMS" == "" ]; then
55
# This is the default.
66
goal="preVerifyRelease"
77
# Settings needed for `preVerifyRelease` execution - for asciidoctor doc rendering
@@ -77,6 +77,9 @@ elif [ "$RDBMS" == "altibase" ]; then
7777
goal="-Pdb=altibase"
7878
elif [ "$RDBMS" == "informix" ]; then
7979
goal="-Pdb=informix"
80+
else
81+
echo "Invalid value for RDBMS: $RDBMS"
82+
exit 1
8083
fi
8184

8285
function logAndExec() {

0 commit comments

Comments
 (0)