diff options
Diffstat (limited to 'src/gns/test_gns_txt_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_txt_lookup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_txt_lookup.sh b/src/gns/test_gns_txt_lookup.sh index 6c6b4b3f6..b0c9144c2 100755 --- a/src/gns/test_gns_txt_lookup.sh +++ b/src/gns/test_gns_txt_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 | ||
@@ -15,7 +15,7 @@ then | |||
15 | fi | 15 | fi |
16 | 16 | ||
17 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 17 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
18 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 18 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" |
19 | TEST_TXT="GNS powered txt record data" | 19 | TEST_TXT="GNS powered txt record data" |
20 | MY_EGO="myego" | 20 | MY_EGO="myego" |
21 | LABEL="testtxt" | 21 | LABEL="testtxt" |
@@ -28,7 +28,7 @@ gnunet-identity -D $MY_EGO -c test_gns_lookup.conf | |||
28 | gnunet-arm -e -c test_gns_lookup.conf | 28 | gnunet-arm -e -c test_gns_lookup.conf |
29 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 29 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
30 | 30 | ||
31 | if [ "$RES_TXT" == "$TEST_TXT" ] | 31 | if [ "$RES_TXT" = "$TEST_TXT" ] |
32 | then | 32 | then |
33 | exit 0 | 33 | exit 0 |
34 | else | 34 | else |