главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjura-san <office@lab21.net>2013-12-24 15:05:27 +0100
committerdjura-san <office@lab21.net>2013-12-24 15:12:58 +0100
commit4bf7871d79b0b149b56641501f99a3d5b8601a24 (patch)
tree748d769dcbe355393d284e10fc8cd8ea32214d5d
parent5e14442cc78ea730829c8ede9e12bf1c66ab47f4 (diff)
added check for "diff" since that tool is not part of the core utils therefore it may not be present on all machines
-rwxr-xr-xbb.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bb.sh b/bb.sh
index 24353f5..3125ecf 100755
--- a/bb.sh
+++ b/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"