From 9d64e122c4551afa5a6ccc72d4a85e911360437e Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 07 Apr 2008 22:51:18 +0000
Subject: [PATCH] Second part of fix for issue 3126 (Cannot run setup if unziped in directory with spaces in name).

---
 opends/resource/bin/_script-util.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/resource/bin/_script-util.sh b/opends/resource/bin/_script-util.sh
index 1094310..7a70f6b 100644
--- a/opends/resource/bin/_script-util.sh
+++ b/opends/resource/bin/_script-util.sh
@@ -145,7 +145,7 @@
 
 # Configure the appropriate CLASSPATH.
 set_classpath() {
-  CLASSPATH="${INSTANCE_ROOT}"/classes
+  CLASSPATH=${INSTANCE_ROOT}/classes
   for JAR in "${INSTANCE_ROOT}"/lib/*.jar
   do
     CLASSPATH=${CLASSPATH}:${JAR}
@@ -160,7 +160,7 @@
   # root so that we can use them to create appropriate paths.
   WORKING_DIR=`pwd`
 
-  cd `dirname "${0}"`
+  cd "`dirname "${0}"`"
   cd ..
   INSTANCE_ROOT=`pwd`
   cd "${WORKING_DIR}"

--
Gitblit v1.10.0