Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
4bf7871d79
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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"