From 91f5fc5050c5f6e83f67d4c3ce04837f62033980 Mon Sep 17 00:00:00 2001 From: rjung Date: Mon, 20 Jun 2011 09:27:30 +0000 Subject: [PATCH] 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 --- bin/digest.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.11.0