Avoid potential problems with filenames containing spaces.
diff --git a/documentation/db2html-winehq b/documentation/db2html-winehq
index 8d2e681..bb9683e 100755
--- a/documentation/db2html-winehq
+++ b/documentation/db2html-winehq
@@ -90,20 +90,20 @@
if [ $# -eq 1 ]
then
- if [ -d ${output}.junk ]
+ if [ -d "${output}.junk" ]
then
- /bin/rm -rf ${output}.junk
+ /bin/rm -rf "${output}.junk"
fi
- if [ -d ${output} ]
+ if [ -d "${output}" ]
then
- mv $output ${output}.junk
+ mv "$output" "${output}.junk"
fi
echo "about to rename temporary directory to $output"
- mv ${TMPDIR} $output
+ mv "${TMPDIR}" "$output"
else
- cat $TMPDIR/*
+ cat "$TMPDIR"/*
fi
-rm -rf $TMPDIR
+rm -rf "$TMPDIR"
exit 0