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