From 75cd208c319667f213f39e54250985ff387bb6b6 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sat, 22 Jun 2013 00:27:40 -0500 Subject: check for missing binaries --- mine.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mine.sh b/mine.sh index c902d84..d3391eb 100755 --- a/mine.sh +++ b/mine.sh @@ -5,6 +5,11 @@ if [[ x"$1" = x ]]; then exit 1 fi +if ! type tcpflow > /dev/null 2>&1 || ! type foremost > /dev/null 2>&1; then + echo "tcpflow or foemost missing" + exit 1 +fi + if [[ -d flow ]]; then rm -rf flow fi -- cgit v1.2.3