From ecb3067e78e9fd6bcd46bc5cc04edee13093a4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 17:05:55 +0100 Subject: [PATCH] Change the if...else when deciding engine --- qsgen2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index 1cffa3e..2df2e90 100755 --- a/qsgen2 +++ b/qsgen2 @@ -87,7 +87,7 @@ case ${1} in _version ${0:t} ;; help || -h || --help) - _help + _help ${0:t} ;; esac @@ -124,10 +124,11 @@ elif [[ ${generator} == "markdown" ]]; then if [[ ! -f /usr/bin/markdown ]]; then echo "Please install the 'discount' package to use Markdown." exit - fi + else # Usage: ${engine} ${1} ${2} - Where 1 is the input file and 2 is the html www_root file and location if (${debug}) echo "${red}Using the ${generator} engine${end}" engine=$( /usr/bin/markdown -o ${2} ${1} ) + fi fi # Define cache files