aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess/store.sh
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-17 11:16:09 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-17 11:16:09 +0200
commit4d93ecfd76915769d3a842e3bd1aa2f5e609b0af (patch)
tree5236273b86bff76c322d2a291fde4cf1996fa2f3 /jsaccess/store.sh
parentjsaccess: store.sh readability (diff)
downloadlaurent-tools-4d93ecfd76915769d3a842e3bd1aa2f5e609b0af.tar.xz
laurent-tools-4d93ecfd76915769d3a842e3bd1aa2f5e609b0af.zip
jsaccess: store check dependencies
Diffstat (limited to '')
-rwxr-xr-xjsaccess/store.sh7
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