aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_zkey_lookup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_zkey_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_zkey_lookup.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh
index 36dec131e..9ce5e1d37 100755
--- a/src/gns/test_gns_zkey_lookup.sh
+++ b/src/gns/test_gns_zkey_lookup.sh
@@ -5,8 +5,13 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
5LOCATION=$(which gnunet-config) 5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ] 6if [ -z $LOCATION ]
7then 7then
8 LOCATION="gnunet-config"
9fi
10$LOCATION --version
11if test $? != 0
12then
8 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" 13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1 14 exit 77
10fi 15fi
11 16
12rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 17rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`