line 136 has:

    if [ "$wdir" == '/' ] ; then

there is a wrong operator

wt., 13 sie 2024 o 22:29 John Neffenger <j...@status6.com> napisał(a):

> -1
>
> I'm getting the following error when I run Maven 3.9.9 in a directory
> that does not have a ".mvn" sub-directory. Does anyone else get these
> errors?
>
>    .../maven/bin/mvn: 136: [: /home/john: unexpected operator
>    .../maven/bin/mvn: 136: [: /home: unexpected operator
>    .../maven/bin/mvn: 136: [: /: unexpected operator
>    .../maven/bin/mvn: 136: [: //: unexpected operator
>
> If I change to a directory containing ".mvn", it works fine.
>
> Seems to be related to this change:
>
> [MNG-8165] Align mvn.sh script with mvn.cmd (#1648)
> https://github.com/apache/maven/commit/cf2934b
>
> Thanks,
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

-- 
Sławomir Jaranowski

Reply via email to