-fix leaks
[oweals/gnunet.git] / src / gns / test_gns_gns2dns_lookup.sh
index 5bd33221afa5a08ea0c7dfb98fbf970f1cc701e5..fa48fb20a64805f49584aef5df70f45bfadbcf60 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/bash
 trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
+
+LOCATION=$(which gnunet-config)
+if [ -z $LOCATION ]
+then
+       echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" 
+       exit 1
+fi
+
 rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
 # IP address of 'uk.gnunet.org'
 TEST_IP_ALT2="81.187.252.184"