Ver código fonte

added check for "diff" since that tool is not part of the core utils therefore it may not be present on all machines

djura-san 11 anos atrás
pai
commit
4bf7871d79
1 arquivos alterados com 1 adições e 0 exclusões
  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"