From 87cf1eeb7d2506e192da77f7d5b286fae2b20314 Mon Sep 17 00:00:00 2001 From: Stephen Connolly Date: Mon, 27 Mar 2017 21:07:01 +0100 Subject: [PATCH] [MNG-6198] Use the directory specified by -f for searching with 'mvn' --- apache-maven/src/bin/mvn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn index e569633654..623b5f20e6 100755 --- a/apache-maven/src/bin/mvn +++ b/apache-maven/src/bin/mvn @@ -122,7 +122,7 @@ fi find_maven_basedir() { ( basedir=`find_file_argument_basedir "$@"` - wdir=`pwd` + wdir="${basedir}" while [ "$wdir" != '/' ] ; do if [ -d "$wdir"/.mvn ] ; then basedir=$wdir