Repository: maven Updated Branches: refs/heads/MNG-5852 [created] 53a190bf4
[MNG-5852] mvn shell script invokes /bin/sh but requires Bash functions 'local' is not POSIX, but supported by most shells. However, it's not supported by Solaris's /bin/sh, so use a subshell instead. This closes #50. Project: http://git-wip-us.apache.org/repos/asf/maven/repo Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/53a190bf Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/53a190bf Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/53a190bf Branch: refs/heads/MNG-5852 Commit: 53a190bf4a0cd16db9140376bea9e58a432325b3 Parents: e91a866 Author: Joseph Walton <[email protected]> Authored: Mon Jan 30 11:13:16 2017 +0100 Committer: Michael Osipov <[email protected]> Committed: Mon Jan 30 11:15:21 2017 +0100 ---------------------------------------------------------------------- apache-maven/src/bin/mvn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven/blob/53a190bf/apache-maven/src/bin/mvn ---------------------------------------------------------------------- diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn index 4a7f610..172f43b 100755 --- a/apache-maven/src/bin/mvn +++ b/apache-maven/src/bin/mvn @@ -190,8 +190,7 @@ 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 - local wdir +( basedir="`pwd`" wdir="`pwd`" while [ "$wdir" != '/' ] ; do @@ -202,6 +201,7 @@ find_maven_basedir() { wdir="`cd "$wdir/.."; pwd`" done echo "${basedir}" +) } # concatenates all lines of a file
