You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2005/11/18 21:12:25 UTC
svn commit: r345559 - /maven/components/trunk/maven-core/src/bin/mvn
Author: jvanzyl
Date: Fri Nov 18 12:12:21 2005
New Revision: 345559
URL: http://svn.apache.org/viewcvs?rev=345559&view=rev
Log:
--------------------------------------------------------------
Issue: MNG-1470
URL: http://jira.codehaus.org/browse/MNG-1470
Summary: mvn can't calculate M2_HOME when mvn is a relative symlink
Reporter: Nicolás Lichtmaier (niqueco)
--------------------------------------------------------------
o patch applied
Modified:
maven/components/trunk/maven-core/src/bin/mvn
Modified: maven/components/trunk/maven-core/src/bin/mvn
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core/src/bin/mvn?rev=345559&r1=345558&r2=345559&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/bin/mvn (original)
+++ maven/components/trunk/maven-core/src/bin/mvn Fri Nov 18 12:12:21 2005
@@ -60,7 +60,7 @@
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
+ if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"