You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2015/11/08 15:08:57 UTC
[2/2] maven git commit: [MNG-5882] Nonportable shell constructs cause
bin/mvn errors on Debian
[MNG-5882] Nonportable shell constructs cause bin/mvn errors on Debian
Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/cf2f373d
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/cf2f373d
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/cf2f373d
Branch: refs/heads/master
Commit: cf2f373ddb38215f7122f743d381ead7e346ed2d
Parents: 1953284
Author: Karl Heinz Marbaise <kh...@apache.org>
Authored: Sun Nov 8 15:08:18 2015 +0100
Committer: Karl Heinz Marbaise <kh...@apache.org>
Committed: Sun Nov 8 15:08:18 2015 +0100
----------------------------------------------------------------------
apache-maven/src/bin/mvn | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/cf2f373d/apache-maven/src/bin/mvn
----------------------------------------------------------------------
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index e340a11..6875628 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -197,8 +197,10 @@ fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
- local basedir="$(pwd)"
- local wdir="$(pwd)"
+ local basedir
+ local wdir
+ basedir="$(pwd)"
+ wdir="$(pwd)"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir