From 4f76ef191b3eec4e9e2a50ca81515b65203eec6e Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jun 18 2011 14:41:30 +0000 Subject: Update docbook_convertToXhtmlChunk.sh to fix output directory clean up. --- diff --git a/Scripts/Functions/Render/Backends/Docbook/docbook_convertToXhtmlChunk.sh b/Scripts/Functions/Render/Backends/Docbook/docbook_convertToXhtmlChunk.sh index 2b912b2..f2df401 100755 --- a/Scripts/Functions/Render/Backends/Docbook/docbook_convertToXhtmlChunk.sh +++ b/Scripts/Functions/Render/Backends/Docbook/docbook_convertToXhtmlChunk.sh @@ -40,7 +40,10 @@ function docbook_convertToXhtmlChunk { # Clean up output directory. This is required in order to prevent # old files from remaining therein when they are no longer needed. - rm -r "${DST}" && mkdir ${DST} + if [[ -d ${DST} ]];then + rm -r "${DST}" + fi + mkdir ${DST} # Print action message. cli_printMessage "${FILE}-xhtml" --as-creating-line