From 66b1bd1a36f0067f38c01720a86427bd6e25f191 Mon Sep 17 00:00:00 2001 From: Trygve Laugstol Date: Fri, 1 Jul 2005 19:26:56 +0000 Subject: [PATCH] o M2_HOME has to be set. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@208783 13f79535-47bb-0310-9956-ffa450edef68 --- m2-bootstrap-all.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/m2-bootstrap-all.sh b/m2-bootstrap-all.sh index 004d1ae984..3b87d1ded4 100755 --- a/m2-bootstrap-all.sh +++ b/m2-bootstrap-all.sh @@ -18,10 +18,13 @@ if $cygwin ; then [ -n "$M2_HOME" ] && M2_HOME=`cygpath -w "$M2_HOME"` fi -if [ ! -z "$M2_HOME" ]; then - HOME_ARGS="-Dmaven.home=$M2_HOME" +if [ -z "$M2_HOME" ]; then + echo "M2_HOME must be set." + exit 1 fi +HOME_ARGS="-Dmaven.home=$M2_HOME" + # Build and install mboot ( echo "-----------------------------------------------------------------------"