mirror of https://github.com/apache/maven.git
Make sure paths with spaces are treated correctly.
Fixes the issue of endlessly looping with project directory paths like "/my/project/this & that"
This commit is contained in:
parent
2f21481d06
commit
0d32cbe6ac
|
@ -200,7 +200,7 @@ find_maven_basedir() {
|
|||
local basedir=$(pwd)
|
||||
local wdir=$(pwd)
|
||||
while [ "$wdir" != '/' ] ; do
|
||||
wdir=$(cd $wdir/..; pwd)
|
||||
wdir=$(cd "$wdir/.."; pwd)
|
||||
if [ -d "$wdir"/.mvn ] ; then
|
||||
basedir=$wdir
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue