PR: MNG-1318

use ~dp0 instead of ~dps0 since that is broken
on Windows 2000 and XP (prior to SP2).


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@382801 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kenney Westerhof 2006-03-03 13:13:06 +00:00
parent 16f876c2f3
commit aaaf6537f6
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ goto error
:chkMHome :chkMHome
if not "%M2_HOME%"=="" goto valMHome if not "%M2_HOME%"=="" goto valMHome
if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\.. if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
if not "%M2_HOME%"=="" goto valMHome if not "%M2_HOME%"=="" goto valMHome
echo. echo.