Fix: DIB_RELEASE is not defined on CentOS

Otherwise an "unbound variable" error is thrown.

Change-Id: I1e29cce101e44fc82e27b5e7986101847be0da8d
This commit is contained in:
Luigi Toscano 2017-02-27 11:21:56 +01:00 committed by Elise Gafford
parent 76e8224136
commit 2f30d6a3a7
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
# scale >= 2.12 for ubuntu depends on openjdk-8, not available on trusty
VERSION=${DEF_VERSION}
else