diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-06-17 11:16:09 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-06-17 11:16:09 +0200 |
commit | 4d93ecfd76915769d3a842e3bd1aa2f5e609b0af (patch) | |
tree | 5236273b86bff76c322d2a291fde4cf1996fa2f3 /jsaccess/store.sh | |
parent | jsaccess: store.sh readability (diff) | |
download | laurent-tools-4d93ecfd76915769d3a842e3bd1aa2f5e609b0af.tar.xz laurent-tools-4d93ecfd76915769d3a842e3bd1aa2f5e609b0af.zip |
jsaccess: store check dependencies
Diffstat (limited to '')
-rwxr-xr-x | jsaccess/store.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |