summaryrefslogtreecommitdiff
path: root/src/gns/test_gns_zkey_lookup.sh
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-09 11:56:13 +0000
committerng0 <ng0@n0.is>2019-03-09 11:56:13 +0000
commitf7aa05c490d2027225e99a6d5f5bf920e76bf5ed (patch)
treed74ff993beec74e30050de696d0d5e797e88b0fb /src/gns/test_gns_zkey_lookup.sh
parent47d973e97236d93c90d8f2fb49ccb46164e03e24 (diff)
downloadgnunet-f7aa05c490d2027225e99a6d5f5bf920e76bf5ed.tar.gz
gnunet-f7aa05c490d2027225e99a6d5f5bf920e76bf5ed.zip
bashism
Diffstat (limited to 'src/gns/test_gns_zkey_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_zkey_lookup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh
index b36a16fa2..03118d741 100755
--- a/src/gns/test_gns_zkey_lookup.sh
+++ b/src/gns/test_gns_zkey_lookup.sh
@@ -1,7 +1,7 @@
1#!/bin/bash 1#!/bin/sh
2# This file is in the public domain. 2# This file is in the public domain.
3trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 3trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
4which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 4which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5"
5 5
6LOCATION=$(which gnunet-config) 6LOCATION=$(which gnunet-config)
7if [ -z $LOCATION ] 7if [ -z $LOCATION ]
@@ -30,7 +30,7 @@ gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gn
30gnunet-arm -e -c test_gns_lookup.conf 30gnunet-arm -e -c test_gns_lookup.conf
31rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` 31rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME`
32 32
33if [ "$RES_IP" == "$TEST_IP" ] 33if [ "$RES_IP" = "$TEST_IP" ]
34then 34then
35 exit 0 35 exit 0
36else 36else