mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
When checking if pandoc is available, actually check for "pandoc"
This commit is contained in:
parent
a535f19585
commit
3b4e1e6701
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ if [[ "$FILE" == *.php ]] && [ "$(which php)" != "" ] && [ "$ENABLE_PHP" = "true
|
|||
CONTENTTYPE="text/html"
|
||||
. ./httpheaders.sh
|
||||
php "$FILE" >> $OUTFILE
|
||||
elif [[ "$FILE" == *.md ]] && [ "$(which markdown)" != "" ] && [ "$ENABLE_MARKDOWN" = "true" ]; then
|
||||
elif [[ "$FILE" == *.md ]] && [ "$(which pandoc)" != "" ] && [ "$ENABLE_MARKDOWN" = "true" ]; then
|
||||
CONTENTTYPE="text/html"
|
||||
. ./httpheaders.sh
|
||||
pandoc -f markdown_github "$FILE" >> $OUTFILE
|
||||
|
|
Loading…
Add table
Reference in a new issue