projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RECLAIM: refactoring; cleanup
[oweals/gnunet.git]
/
src
/
gns
/
test_gns_lookup.sh
diff --git
a/src/gns/test_gns_lookup.sh
b/src/gns/test_gns_lookup.sh
index 79558afae73ba6b3acaa0cf9e91001d1d67db004..4bd6ae8799fd467a622b4a603e1aec426173deab 100755
(executable)
--- a/
src/gns/test_gns_lookup.sh
+++ b/
src/gns/test_gns_lookup.sh
@@
-1,4
+1,5
@@
-#!/bin/bash
+#!/bin/sh
+# This file is in the public domain.
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
LOCATION=$(which gnunet-config)
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
LOCATION=$(which gnunet-config)
@@
-14,7
+15,7
@@
then
fi
rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
fi
rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
-which timeout
&> /dev/null
&& DO_TIMEOUT="timeout 30"
+which timeout
> /dev/null 2>&1
&& DO_TIMEOUT="timeout 30"
TEST_IP="127.0.0.1"
MY_EGO="myego"
LABEL="www"
TEST_IP="127.0.0.1"
MY_EGO="myego"
LABEL="www"
@@
-26,7
+27,7
@@
gnunet-namestore -z $MY_EGO -d -n $LABEL -t A -V $TEST_IP -e never -c test_gns_l
gnunet-identity -D $MY_EGO -c test_gns_lookup.conf
gnunet-arm -e -c test_gns_lookup.conf
gnunet-identity -D $MY_EGO -c test_gns_lookup.conf
gnunet-arm -e -c test_gns_lookup.conf
-if [ "$RES_IP" =
=
"$TEST_IP" ]
+if [ "$RES_IP" = "$TEST_IP" ]
then
exit 0
else
then
exit 0
else