From ca428419c25a448de152cec313775bd01ca708a2 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Thu, 21 Feb 2013 07:47:28 +0000 Subject: [PATCH] * clean baseUrl. --- bin/init.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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