X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgns%2Ftest_gns_lookup.sh;h=4bd6ae8799fd467a622b4a603e1aec426173deab;hb=a12b8c2c4cbf952c8c305cde193bb25c13a0912b;hp=79558afae73ba6b3acaa0cf9e91001d1d67db004;hpb=65377c3d9087635696f66b2444ef1d7eb39d4cd0;p=oweals%2Fgnunet.git diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index 79558afae..4bd6ae879 100755 --- 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) @@ -14,7 +15,7 @@ then 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" @@ -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 -if [ "$RES_IP" == "$TEST_IP" ] +if [ "$RES_IP" = "$TEST_IP" ] then exit 0 else