From 890b07e6b33f006958c25c240639c4e072aa2b49 Mon Sep 17 00:00:00 2001 From: Ludovic Poitou <ludovic.poitou@forgerock.com> Date: Mon, 12 Aug 2013 15:40:53 +0000 Subject: [PATCH] Fix windows batch if instance.loc is missing - OPENDJ-1069 --- opends/resource/bin/_mixed-script.bat | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/opends/resource/bin/_mixed-script.bat b/opends/resource/bin/_mixed-script.bat index 5ca00af..78c597e 100644 --- a/opends/resource/bin/_mixed-script.bat +++ b/opends/resource/bin/_mixed-script.bat @@ -34,8 +34,10 @@ set INSTALL_ROOT=%DIR_HOME% set INSTANCE_DIR= -for /f "delims=" %%a in (%INSTALL_ROOT%\instance.loc) do ( - set INSTANCE_DIR=%%a +if exist "%INSTALL_ROOT%\instance.loc" ( + set /p INSTANCE_DIR=<%INSTALL_ROOT%\instance.loc +) else ( +set INSTANCE_DIR=. ) set CUR_DIR=%CD% cd /d %INSTALL_ROOT% -- Gitblit v1.10.0