diff options
author | ng0 <ng0@n0.is> | 2019-03-09 11:59:23 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-03-09 11:59:23 +0000 |
commit | bbe61e6019a4d0a213e42a80d37638e13759bba3 (patch) | |
tree | 68e97d43e1407dd73e25551336e71bccae979895 /src/gns/test_gns_quickupdate.sh | |
parent | f7aa05c490d2027225e99a6d5f5bf920e76bf5ed (diff) | |
download | gnunet-bbe61e6019a4d0a213e42a80d37638e13759bba3.tar.gz gnunet-bbe61e6019a4d0a213e42a80d37638e13759bba3.zip |
bashism
Diffstat (limited to 'src/gns/test_gns_quickupdate.sh')
-rwxr-xr-x | src/gns/test_gns_quickupdate.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_quickupdate.sh b/src/gns/test_gns_quickupdate.sh index d9807fe22..d2b4bf2cb 100755 --- a/src/gns/test_gns_quickupdate.sh +++ b/src/gns/test_gns_quickupdate.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 | ||
@@ -19,7 +19,7 @@ OTHER_EGO="delegatedego" | |||
19 | 19 | ||
20 | 20 | ||
21 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 21 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
22 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 22 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
23 | TEST_IP="127.0.0.1" | 23 | TEST_IP="127.0.0.1" |
24 | gnunet-arm -s -c test_gns_lookup.conf | 24 | gnunet-arm -s -c test_gns_lookup.conf |
25 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 25 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
@@ -56,7 +56,7 @@ gnunet-identity -D $OTHER_EGO -c test_gns_lookup.conf | |||
56 | gnunet-arm -e -c test_gns_lookup.conf | 56 | gnunet-arm -e -c test_gns_lookup.conf |
57 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 57 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
58 | 58 | ||
59 | if [ "$RES_IP" == "$TEST_IP" ] | 59 | if [ "$RES_IP" = "$TEST_IP" ] |
60 | then | 60 | then |
61 | exit 0 | 61 | exit 0 |
62 | else | 62 | else |