Make sure that null checks against $MVN are correct 89/3689/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 3 Nov 2016 15:39:51 +0000 (08:39 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 3 Nov 2016 15:39:51 +0000 (08:39 -0700)
Checking to see if a string is not null doesn't work well when the
string isn't quoted.

Change-Id: I62457be5a2e4135dfe47dafc8ec742b13b0a8016
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jjb/nsh_sfc/include-raw-nsh_sfc-build.sh

index 5faff28..98cbbd5 100644 (file)
@@ -28,7 +28,7 @@ fi
 echo "sha1sum of this script: ${0}"
 sha1sum $0
 
-if [ -n ${MVN} ]
+if [ -n "${MVN}" ]
 then
   export MAVEN_HOME=$(dirname ${MVN})/..
 else