[MNG-6332] Cleaned up mvn.cmd Script

This commit is contained in:
Karl Heinz Marbaise 2017-12-30 21:14:10 +01:00
parent abd73da3a4
commit 68a9d79671
1 changed files with 1 additions and 3 deletions

View File

@ -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%"