Browse Source

Merge pull request #19 from djura-san/upstream

added check for "diff"
Carlos Fenollosa 11 years ago
parent
commit
15d2393031
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bb.sh

+ 1 - 0
bb.sh

@@ -178,6 +178,7 @@ global_variables() {
 # Test if the markdown script is working correctly
 test_markdown() {
     [[ -z "$markdown_bin" ]] && return 1
+    [[ -z "$(which diff)" ]] && return 1
 
     in="/tmp/md-in-$(echo $RANDOM).md"
     out="/tmp/md-out-$(echo $RANDOM).html"