Merge pull request #16 from davinerd/dependencies

all dependencies are checked for at startup
This commit is contained in:
DJR 2011-08-01 13:32:54 -07:00
commit 58e2b26694

View File

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