Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow "catalina.bat run" to work even if %TEMP% contains spaces.
Note that
- It affects "run" command only.
For all other commands that code is skipped, thanks to [if not ""%1"" == ""run""] jump.
- Single doublequotes are already used in "%TEMP%\%~nx0.run". The %TEMP% value cannot be quoted.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1344725 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Konstantin Kolinko committed May 31, 2012
1 parent e90cd4b commit 77e943b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/catalina.bat
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ rem ---------------------------------------------------------------------------

rem Suppress Terminate batch job on CTRL+C
if not ""%1"" == ""run"" goto mainEntry
if ""%TEMP%"" == """" goto mainEntry
if "%TEMP%" == "" goto mainEntry
if exist "%TEMP%\%~nx0.run" goto mainEntry
echo Y>"%TEMP%\%~nx0.run"
if not exist "%TEMP%\%~nx0.run" goto mainEntry
Expand Down

0 comments on commit 77e943b

Please sign in to comment.