From d4de059e3926fccd10bc00d7cf331de2ebc3d964 Mon Sep 17 00:00:00 2001 From: Anathema Date: Mon, 1 Aug 2011 22:14:23 +0200 Subject: [PATCH] added cryptsetup and pinentry binary checks to check_bin() --- src/tomb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tomb b/src/tomb index 77c025a..c2b0d80 100755 --- a/src/tomb +++ b/src/tomb @@ -84,6 +84,18 @@ check_bin() { STEGHIDE=0 fi + which cryptsetup > /dev/null + if [ $? != 0 ]; then + error "Cannot find cryptsetup. Please install it." + exit 1 + fi + + which pinentry > /dev/null + if [ $? != 0 ]; then + error "Cannot find pinentry. Please install it." + exit 1 + fi + # check for tomb-open script if [ "$0" = "./tomb" ]; then TOMBOPENEXEC="./tomb-open"