From 5e70713e85511382b978a8e14159b67811db8364 Mon Sep 17 00:00:00 2001 From: Carlos Fenollosa Date: Mon, 24 Oct 2016 15:32:58 +0200 Subject: [PATCH] support Markdown.pl in bashblog folder. Close #113 --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index 840ba0c..508c00e 100755 --- a/bb.sh +++ b/bb.sh @@ -148,7 +148,7 @@ global_variables() { # Markdown location. Trying to autodetect by default. # 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