From e6fb37712eb1762d8184edc897bf2d468db8d254 Mon Sep 17 00:00:00 2001
From: "Rajendra Gokhale (rvgcentos)" <rvg@cloudera.com>
Date: Fri, 1 May 2015 17:01:36 -0700
Subject: [PATCH] [SPARK-7304] [BUILD] Include $@ in call to mvn consistently
 in make-distribution.sh

Adding the $ allows the caller of this script to supply additional arguments to the mvn command and is consistent with how mvn is being invoked elsewhere in the scripts

Author: Rajendra Gokhale (rvgcentos) <rvg@cloudera.com>

Closes #5846 from palamau/master and squashes the following commits:

e5f2adb [Rajendra Gokhale (rvgcentos)] Add $@ in call to mvn consistently in make-distribution.sh
---
 make-distribution.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/make-distribution.sh b/make-distribution.sh
index cb65932b4a..92177e19fe 100755
--- a/make-distribution.sh
+++ b/make-distribution.sh
@@ -26,6 +26,7 @@
 
 set -o pipefail
 set -e
+set -x
 
 # Figure out where the Spark framework is installed
 SPARK_HOME="$(cd "`dirname "$0"`"; pwd)"
@@ -126,7 +127,7 @@ if [ ! $(command -v "$MVN") ] ; then
     exit -1;
 fi
 
-VERSION=$("$MVN" help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "INFO" | tail -n 1)
+VERSION=$("$MVN" help:evaluate -Dexpression=project.version $@ 2>/dev/null | grep -v "INFO" | tail -n 1)
 SCALA_VERSION=$("$MVN" help:evaluate -Dexpression=scala.binary.version $@ 2>/dev/null\
     | grep -v "INFO"\
     | tail -n 1)
-- 
GitLab