mirror of https://github.com/apache/maven.git
[MNG-6332] Cleaned up mvn.cmd Script
This commit is contained in:
parent
abd73da3a4
commit
68a9d79671
|
@ -61,11 +61,9 @@ goto error
|
|||
|
||||
:chkMHome
|
||||
set "MAVEN_HOME=%~dp0.."
|
||||
if not "%MAVEN_HOME%"=="" goto valMHome
|
||||
if not "%MAVEN_HOME%"=="" goto stripMHome
|
||||
goto error
|
||||
|
||||
:valMHome
|
||||
|
||||
:stripMHome
|
||||
if not "_%MAVEN_HOME:~-1%"=="_\" goto checkMCmd
|
||||
set "MAVEN_HOME=%MAVEN_HOME:~0,-1%"
|
||||
|
|
Loading…
Reference in New Issue