diff --git a/modules/jenkins/files/slave_scripts/markdown-docbook.sh b/modules/jenkins/files/slave_scripts/markdown-docbook.sh index 78e5f38b73..2dc6bde5b6 100755 --- a/modules/jenkins/files/slave_scripts/markdown-docbook.sh +++ b/modules/jenkins/files/slave_scripts/markdown-docbook.sh @@ -15,6 +15,7 @@ shopt -s extglob # for the ID and xml filename. FILENAME=$1 FILEPATH=`find ./ -regextype posix-extended -regex ".*${FILENAME}\.(md|markdown)"` -pandoc -f markdown -t docbook -s ${FILEPATH} | xsltproc -o - /usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl - | xmllint --format - | sed -e 's,,,' > src/markdown/$FILENAME.xml +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 pwd