Make dynamic Maven work on Ubuntu 14.04 31/3631/1
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Fri, 28 Oct 2016 23:08:29 +0000 (18:08 -0500)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Fri, 28 Oct 2016 23:08:29 +0000 (18:08 -0500)
The command realpath is not installed on Ubuntu 14.04 by default. It is
causing an extraneous path check which if the path doesn't exist the
build would fail anyway.

Change-Id: If38eb993ed5a9e3517fe6b85f8eb5bce49b6bbce
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
jjb/nsh_sfc/include-raw-nsh_sfc-build.sh

index 04383f2..5faff28 100644 (file)
@@ -30,10 +30,11 @@ sha1sum $0
 
 if [ -n ${MVN} ]
 then
-  export MAVEN_HOME=$(realpath $(dirname ${MVN})/..)
+  export MAVEN_HOME=$(dirname ${MVN})/..
 else
   export MAVEN_HOME="/opt/apache/maven/"
 fi
+
 export PATH=${MAVEN_HOME}/bin:${PATH}
 
 scripts/ci/verify.sh