diff options
author | ng0 <ng0@n0.is> | 2019-03-09 11:54:36 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-03-09 11:54:36 +0000 |
commit | 47d973e97236d93c90d8f2fb49ccb46164e03e24 (patch) | |
tree | 67d67db8c8fa87f6a1a47698734fa7dafc1927cf /src/gns/test_gns_at_lookup.sh | |
parent | 9e3255786c36e163ea25e44cbacf1409c843ced1 (diff) | |
download | gnunet-47d973e97236d93c90d8f2fb49ccb46164e03e24.tar.gz gnunet-47d973e97236d93c90d8f2fb49ccb46164e03e24.zip |
bashism
Diffstat (limited to 'src/gns/test_gns_at_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_at_lookup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_at_lookup.sh b/src/gns/test_gns_at_lookup.sh index d900c070b..bacc63eb0 100755 --- a/src/gns/test_gns_at_lookup.sh +++ b/src/gns/test_gns_at_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
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 | 4 | ||
@@ -14,7 +14,7 @@ then | |||
14 | exit 77 | 14 | exit 77 |
15 | fi | 15 | fi |
16 | 16 | ||
17 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 17 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
18 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 18 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
19 | 19 | ||
20 | TEST_IP="127.0.0.1" | 20 | TEST_IP="127.0.0.1" |
@@ -31,7 +31,7 @@ gnunet-namestore -z delegatedego -d -n '@' -t A -V $TEST_IP -e never -c test_gn | |||
31 | gnunet-arm -e -c test_gns_lookup.conf | 31 | gnunet-arm -e -c test_gns_lookup.conf |
32 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 32 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
33 | 33 | ||
34 | if [ "$RES_IP" == "$TEST_IP" ] | 34 | if [ "$RES_IP" = "$TEST_IP" ] |
35 | then | 35 | then |
36 | exit 0 | 36 | exit 0 |
37 | else | 37 | else |