浏览代码

support Markdown.pl in bashblog folder. Close #113

Carlos Fenollosa 8 年之前
父节点
当前提交
36d79b5cdd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bb.sh

+ 1 - 1
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