diff options
author | LRN <lrn1986@gmail.com> | 2013-12-08 21:33:34 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-08 21:33:34 +0000 |
commit | 0339fb1c3eb6daeda7f1904815d8eb0101203567 (patch) | |
tree | eac23c2ad58d7dcfa36a3bbd15c09f87d2d8ebdc /src/gns/test_gns_mx_lookup.sh | |
parent | ef2d4d1604028a47f7cbd4f23681eba37dc2ac0c (diff) | |
download | gnunet-0339fb1c3eb6daeda7f1904815d8eb0101203567.tar.gz gnunet-0339fb1c3eb6daeda7f1904815d8eb0101203567.zip |
Change gnunet-config detection in gns tests
Diffstat (limited to 'src/gns/test_gns_mx_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_mx_lookup.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh index 9318d9428..500a6cbc0 100755 --- a/src/gns/test_gns_mx_lookup.sh +++ b/src/gns/test_gns_mx_lookup.sh | |||
@@ -4,8 +4,13 @@ trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | |||
4 | LOCATION=$(which gnunet-config) | 4 | LOCATION=$(which gnunet-config) |
5 | if [ -z $LOCATION ] | 5 | if [ -z $LOCATION ] |
6 | then | 6 | then |
7 | LOCATION="gnunet-config" | ||
8 | fi | ||
9 | $LOCATION --version | ||
10 | if test $? != 0 | ||
11 | then | ||
7 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | 12 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" |
8 | exit 1 | 13 | exit 77 |
9 | fi | 14 | fi |
10 | 15 | ||
11 | rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 16 | rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |