This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new cf2934b6ad [MNG-8165] Align mvn.sh script with mvn.cmd (#1648)
cf2934b6ad is described below
commit cf2934b6ad821458014cc1c094e8233c10d01f75
Author: Tamas Cservenak <[email protected]>
AuthorDate: Tue Aug 13 09:11:25 2024 +0200
[MNG-8165] Align mvn.sh script with mvn.cmd (#1648)
As one does check for .mvn directory in FS root while other does not, stops
one level before.
---
https://issues.apache.org/jira/browse/MNG-8165
---
apache-maven/src/assembly/shared/init | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/apache-maven/src/assembly/shared/init
b/apache-maven/src/assembly/shared/init
index d5bd529b60..5043c905ee 100755
--- a/apache-maven/src/assembly/shared/init
+++ b/apache-maven/src/assembly/shared/init
@@ -34,11 +34,15 @@ find_maven_basedir() {
(
basedir=`find_file_argument_basedir "$@"`
wdir="$basedir"
- while [ "$wdir" != '/' ] ; do
+ while :
+ do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
+ if [ "$wdir" == '/' ] ; then
+ break
+ fi
wdir=`cd "$wdir/.."; pwd`
done
echo "$basedir"