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

This commit is contained in:
djura-san 2013-12-24 15:05:27 +01:00
parent 5e14442cc7
commit 4bf7871d79
1 changed files with 1 additions and 0 deletions

1
bb.sh
View File

@ -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"