mirror of https://github.com/apache/maven.git
--------------------------------------------------------------
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 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@345559 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4350da7547
commit
02902d53a2
|
@ -60,7 +60,7 @@ if [ -z "$M2_HOME" ] ; then
|
|||
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"
|
||||
|
|
Loading…
Reference in New Issue