Change the if...else when deciding engine
This commit is contained in:
parent
a24eec3624
commit
ecb3067e78
5
qsgen2
5
qsgen2
@ -87,7 +87,7 @@ case ${1} in
|
|||||||
_version ${0:t}
|
_version ${0:t}
|
||||||
;;
|
;;
|
||||||
help || -h || --help)
|
help || -h || --help)
|
||||||
_help
|
_help ${0:t}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -124,10 +124,11 @@ elif [[ ${generator} == "markdown" ]]; then
|
|||||||
if [[ ! -f /usr/bin/markdown ]]; then
|
if [[ ! -f /usr/bin/markdown ]]; then
|
||||||
echo "Please install the 'discount' package to use Markdown."
|
echo "Please install the 'discount' package to use Markdown."
|
||||||
exit
|
exit
|
||||||
fi
|
else
|
||||||
# Usage: ${engine} ${1} ${2} - Where 1 is the input file and 2 is the html www_root file and location
|
# 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}"
|
if (${debug}) echo "${red}Using the ${generator} engine${end}"
|
||||||
engine=$( /usr/bin/markdown -o ${2} ${1} )
|
engine=$( /usr/bin/markdown -o ${2} ${1} )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define cache files
|
# Define cache files
|
||||||
|
Loading…
Reference in New Issue
Block a user