diff --git a/bin/init.bat b/bin/init.bat index 83589abc98..69de08b41a 100644 --- a/bin/init.bat +++ b/bin/init.bat @@ -16,11 +16,13 @@ if not exist %phpcli% ( ) :input_url IF "%2"=="" SET /P baseUrl="Please input zentao url:(example: http://localhost or http://127.0.0.1:88)" -echo %baseUrl% if %baseUrl% == '' ( echo zentao url is error goto input_url ) + +:: get baseUrl +if %baseUrl:~-1% == / SET baseUrl=%baseUrl:~0,-1% :: get requestType SET requestType= 'PATH_INFO' for /f "tokens=3" %%f in ('find /c "'PATH_INFO'" "%baseDir%..\config\my.php"') do set count=%%f