From f6713cf1ea4ed1b3c4844fa8e74187043986b2b6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 Jun 2014 17:27:56 +0000 Subject: add check for certtool --- src/gns/gnunet-gns-proxy-setup-ca | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gns/gnunet-gns-proxy-setup-ca b/src/gns/gnunet-gns-proxy-setup-ca index d0b07887b..5686e37f7 100644 --- a/src/gns/gnunet-gns-proxy-setup-ca +++ b/src/gns/gnunet-gns-proxy-setup-ca @@ -2,8 +2,13 @@ # This shell script will generate an X509 certificate for your gnunet-gns-proxy # and install it (for both GNUnet and your browser). # -echo "Generating CA" +if ! which certtool > /dev/null +then + echo "'certtool' command not found. Please install it." + exit 1 +fi +echo "Generating CA" options='' while getopts "c:" opt; do case $opt in -- cgit v1.2.3