diff --git a/modules/jenkins/files/slave_scripts/markdown-docbook.sh b/modules/jenkins/files/slave_scripts/markdown-docbook.sh index 2dc6bde5b6..4c20bd83e5 100755 --- a/modules/jenkins/files/slave_scripts/markdown-docbook.sh +++ b/modules/jenkins/files/slave_scripts/markdown-docbook.sh @@ -14,8 +14,8 @@ shopt -s extglob # and images-api-v2.0.md and openstackapi-programming and images-api-v2.0 are the names # for the ID and xml filename. FILENAME=$1 -FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown)"` +FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown|mdown)"` DIRPATH=`dirname $FILEPATH` -pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e 's,,,' > ${DIRPATH}/$FILENAME.xml +pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e "s,,,' > ${DIRPATH}/$FILENAME.xml pwd