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:
Jason van Zyl 2015-03-13 12:18:24 -07:00
parent 2f21481d06
commit 0d32cbe6ac
1 changed files with 1 additions and 1 deletions

View File

@ -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