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/_client-script.bat | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/opends/resource/bin/_client-script.bat b/opends/resource/bin/_client-script.bat index 00505cd..40e3d13 100644 --- a/opends/resource/bin/_client-script.bat +++ b/opends/resource/bin/_client-script.bat @@ -34,9 +34,12 @@ 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% cd /d %INSTANCE_DIR% -- Gitblit v1.10.0