From a5f23ee26d75607de3dba3425512b3684062aad0 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Mon, 27 Feb 2017 11:21:56 +0100 Subject: [PATCH] Fix: DIB_RELEASE is not defined on CentOS Otherwise an "unbound variable" error is thrown. Change-Id: I1e29cce101e44fc82e27b5e7986101847be0da8d (cherry picked from commit 591bfed8f045b88b29c4c627e1c8106080dabd3a) --- elements/hadoop-mapr/install.d/41-scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/hadoop-mapr/install.d/41-scala b/elements/hadoop-mapr/install.d/41-scala index b9ed219a..1f4cc3fd 100755 --- a/elements/hadoop-mapr/install.d/41-scala +++ b/elements/hadoop-mapr/install.d/41-scala @@ -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