Skip to content

Commit

Permalink
MNG-5858: mvn script fails to locate .mvn in current directory
Browse files Browse the repository at this point in the history
Submitted by: Dave Syer

closes apache#58
  • Loading branch information
Jason van Zyl committed Sep 11, 2015
1 parent a839e55 commit 1a8413b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apache-maven/src/bin/mvn
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ find_maven_basedir() {
local basedir="$(pwd)"
local wdir="$(pwd)"
while [ "$wdir" != '/' ] ; do
wdir="$(cd "$wdir/.."; pwd)"
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
wdir="$(cd "$wdir/.."; pwd)"
done
echo "${basedir}"
}
Expand Down

0 comments on commit 1a8413b

Please sign in to comment.