From 36d79b5cdd01f145bb8fc523f04f7e3d312e524d Mon Sep 17 00:00:00 2001 From: Carlos Fenollosa Date: Mon, 24 Oct 2016 11:39:29 +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 d9b7003..d8e8759 100755 --- a/bb.sh +++ b/bb.sh @@ -160,7 +160,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 2>/dev/null || which markdown 2>/dev/null) + [[ -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