소스 검색

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.
     # 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 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
 # Check for the validity of some variables