From 5d7e6c4e2b85cf351784253fb93ec816df0e0768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Fri, 2 Feb 2024 10:40:26 +0100 Subject: [PATCH] _pages: Run engine --- qsgen2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index eb66a4b..555b206 100755 --- a/qsgen2 +++ b/qsgen2 @@ -152,7 +152,7 @@ elif [[ ${generator} == "markdown" ]]; then exit else # Usage: ${engine} ${1} - Where 1 is the file you want parsed - engine=$(/usr/bin/Markdown.pl) + engine="/usr/bin/Markdown.pl" # function engine() { # # local command="/usr/bin/Markdown.pl" @@ -418,7 +418,7 @@ function _pages() { if [[ ${file_ext} == "tpl" ]]; then local page_content=$( ${engine} "$page_content" ) elif [[ ${file_ext} == "md" ]]; then - local page_content=$( echo "$page_content" | ${engine} ) + local page_content=$( echo "$page_content" | $(engine) ) echo "$page_content" exit fi