b9ab89
--- docbook-utils-0.6.14/bin/jw.in.spaces	2003-04-30 17:21:49.000000000 +0100
b9ab89
+++ docbook-utils-0.6.14/bin/jw.in	2004-08-19 09:33:34.989426640 +0100
b9ab89
@@ -405,9 +405,9 @@
b9ab89
   echo -e $SGML_HELP_MESSAGE >&2
b9ab89
   exit 1
b9ab89
 fi
b9ab89
-if [ ! -d $SGML_OUTPUT_DIRECTORY ]
b9ab89
+if [ ! -d "$SGML_OUTPUT_DIRECTORY" ]
b9ab89
 then
b9ab89
-  mkdir $SGML_OUTPUT_DIRECTORY 2>/dev/null
b9ab89
+  mkdir "$SGML_OUTPUT_DIRECTORY" 2>/dev/null
b9ab89
   if [ $? -ne 0 ]
b9ab89
   then
b9ab89
     echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2
b9ab89
@@ -422,7 +422,7 @@
b9ab89
 echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`"
b9ab89
 echo "Using stylesheet: $SGML_STYLESHEET"
b9ab89
 echo "Working on: $SGML_FILE"
b9ab89
-cd $SGML_OUTPUT_DIRECTORY
b9ab89
+cd "$SGML_OUTPUT_DIRECTORY"
b9ab89
 export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS
b9ab89
 export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET
b9ab89
 NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks`
b9ab89
@@ -433,7 +433,7 @@
b9ab89
 	sh $SGML_BACKEND >$SGML_FILE_NAME.html
b9ab89
 fi
b9ab89
 SGML_RETURN=$?
b9ab89
-cd $SGML_CURRENT_DIRECTORY
b9ab89
+cd "$SGML_CURRENT_DIRECTORY"
b9ab89
 
b9ab89
 if [ $SGML_RETURN -gt 0 ]
b9ab89
 then exit `expr 7 + $SGML_RETURN`