diff options
Diffstat (limited to 'src/gns/test_gns_mx_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_mx_lookup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh index 79ac37b0a..4e9d98358 100755 --- a/src/gns/test_gns_mx_lookup.sh +++ b/src/gns/test_gns_mx_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 5" | 18 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
19 | 19 | ||
20 | MY_EGO="myego" | 20 | MY_EGO="myego" |
21 | TEST_MX="5,mail.+" | 21 | TEST_MX="5,mail.+" |
@@ -35,7 +35,7 @@ rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | |||
35 | RES_MX=`echo $RES_MX | tr [A-Z] [a-z]` | 35 | RES_MX=`echo $RES_MX | tr [A-Z] [a-z]` |
36 | WANT_MX=`echo $WANT_MX | tr [A-Z] [a-z]` | 36 | WANT_MX=`echo $WANT_MX | tr [A-Z] [a-z]` |
37 | 37 | ||
38 | if [ "$RES_MX" == "$WANT_MX" ] | 38 | if [ "$RES_MX" = "$WANT_MX" ] |
39 | then | 39 | then |
40 | exit 0 | 40 | exit 0 |
41 | else | 41 | else |