From 4d93ecfd76915769d3a842e3bd1aa2f5e609b0af Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Mon, 17 Jun 2013 11:16:09 +0200 Subject: jsaccess: store check dependencies --- jsaccess/store.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'jsaccess/store.sh') diff --git a/jsaccess/store.sh b/jsaccess/store.sh index ec4d167..d730160 100755 --- a/jsaccess/store.sh +++ b/jsaccess/store.sh @@ -30,6 +30,13 @@ fi clear_path=$1 clear_name=`basename $clear_path` +# Check for dependencies +if [ X"`which base64`" == X"" \ + -o X"`which openssl`" == X"" ]; then + echo "You need to have openssl and base64 available in your path !" + exit 1 +fi + # Initialize temporary stuff sumask=$(umask) umask 077 -- cgit v1.2.3-59-g8ed1b