support Markdown.pl in bashblog folder. Close #113

This commit is contained in:
Carlos Fenollosa 2016-10-24 15:32:58 +02:00
parent 349ed8e3a7
commit 5e70713e85

2
bb.sh
View File

@ -148,7 +148,7 @@ global_variables() {
# Markdown location. Trying to autodetect by default. # Markdown location. Trying to autodetect by default.
# The invocation must support the signature 'markdown_bin in.md > out.html' # The invocation must support the signature 'markdown_bin in.md > out.html'
markdown_bin=$(which Markdown.pl || which markdown) [[ -f Markdown.pl ]] && markdown_bin=./Markdown.pl || markdown_bin=$(which Markdown.pl 2>/dev/null || which markdown 2>/dev/null)
} }
# Check for the validity of some variables # Check for the validity of some variables