commit 5a9f28c677f30bfacf82c5dadd03513e72b328b6 parent f9d63a3b38c7cd5aee2d16a39756bfe26e63b6d8 Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com> Date: Mon, 7 Nov 2016 11:53:02 -0500 Remove the loop for the feed template. Diffstat:
M | functions/build-pandoc-templates | | | 14 | ++++---------- |
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/functions/build-pandoc-templates b/functions/build-pandoc-templates @@ -5,7 +5,7 @@ build_pandoc_templates () { echo "- Convert Mustache templates into Pandoc templates" # Purge the $TPL_PANDOC_PATH/ folder before the conversion - rm -Rf "$TPL_PANDOC_PATH/"*.html + rm -Rf "${TPL_PANDOC_PATH:?}/"* # HTML Templates for mustache in "$TPL_MUSTACHE_PATH/"*.mustache; do @@ -13,14 +13,8 @@ build_pandoc_templates () { mustachename=$(basename "$mustache") # And then the convertion without the mustache extension mo "$mustache" > "$TPL_PANDOC_PATH/${mustachename%.*}".html - done - # End + done - # Feed Templates - for mustachefeed in "$TPL_MUSTACHE_PATH/feed/"*.mustache; do - # Remove files path - mustachefeedname=$(basename "$mustachefeed") - # And then the convertion without the mustache extension - mo "$mustachefeed" > "$TPL_PANDOC_PATH/${mustachefeedname%.*}".txt - done + # Feed Template + mo "$TPL_MUSTACHE_PATH/feed/feed.mustache" > "$TPL_PANDOC_PATH/feed.txt" }