From 4bf7871d79b0b149b56641501f99a3d5b8601a24 Mon Sep 17 00:00:00 2001 From: djura-san Date: Tue, 24 Dec 2013 15:05:27 +0100 Subject: [PATCH] added check for "diff" since that tool is not part of the core utils therefore it may not be present on all machines --- bb.sh | 1 + 1 file changed, 1 insertion(+) 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"