From: rjung Date: Mon, 20 Jun 2011 09:27:30 +0000 (+0000) Subject: Make Windows shell scripts for individual X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=91f5fc5050c5f6e83f67d4c3ce04837f62033980;p=tomcat7.0 Make Windows shell scripts for individual commands consistent. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1137559 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/bin/digest.bat b/bin/digest.bat index 1e78e2b1a..93bf103ce 100755 --- a/bin/digest.bat +++ b/bin/digest.bat @@ -22,10 +22,13 @@ rem $Id$ rem --------------------------------------------------------------------------- rem Guess CATALINA_HOME if not defined +set "CURRENT_DIR=%cd%" if not "%CATALINA_HOME%" == "" goto gotHome -set CATALINA_HOME=. +set "CATALINA_HOME=%CURRENT_DIR%" if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome -set CATALINA_HOME=.. +cd .. +set "CATALINA_HOME=%cd%" +cd "%CURRENT_DIR%" :gotHome if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome echo The CATALINA_HOME environment variable is not defined correctly