diff options
Diffstat (limited to 'src/gns/test_gns_dht_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_dht_lookup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_dht_lookup.sh b/src/gns/test_gns_dht_lookup.sh index 07e559752..ac90d58a8 100755 --- a/src/gns/test_gns_dht_lookup.sh +++ b/src/gns/test_gns_dht_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. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 4 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" |
5 | 5 | ||
6 | LOCATION=$(which gnunet-config) | 6 | LOCATION=$(which gnunet-config) |
7 | if [ -z $LOCATION ] | 7 | if [ -z $LOCATION ] |
@@ -55,7 +55,7 @@ then | |||
55 | echo "Failed to resolve to proper IP, got $RES_IP_REL. (relative expiration)" | 55 | echo "Failed to resolve to proper IP, got $RES_IP_REL. (relative expiration)" |
56 | #exit 1 | 56 | #exit 1 |
57 | fi | 57 | fi |
58 | if [ "$RES_IP" == "$TEST_IP" ] | 58 | if [ "$RES_IP" = "$TEST_IP" ] |
59 | then | 59 | then |
60 | exit 0 | 60 | exit 0 |
61 | else | 61 | else |