Fix: DIB_RELEASE is not defined on CentOS

Otherwise an "unbound variable" error is thrown.

Change-Id: I1e29cce101e44fc82e27b5e7986101847be0da8d
(cherry picked from commit 591bfed8f0)
This commit is contained in:
Luigi Toscano 2017-02-27 11:21:56 +01:00
parent 7790e81a5c
commit a5f23ee26d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if [ "$RETURN_CODE" != "200" ]; then
echo "http://www.scala-lang.org is unreachable" && exit 1
fi
if [ "trusty" == "${DIB_RELEASE}" ]; then
if [ "trusty" == "${DIB_RELEASE:-}" ]; then
# scala >= 2.12 for ubuntu depends on openjdk-8, not available on trusty
VERSION=${DEF_VERSION}
else