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:
parent
7790e81a5c
commit
a5f23ee26d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue