REST: nothing triggers rest
[oweals/gnunet.git] / src / gns / test_gns_dht_lookup.sh
index 07e5597527eedfbd6782d15ca8e3a5844ccf76f3..ac90d58a8bda20dd71855a14617a871d69cd6dc5 100755 (executable)
@@ -1,7 +1,7 @@
-#!/bin/bash
+#!/bin/sh
 # This file is in the public domain.
 trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
-which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
+which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30"
 
 LOCATION=$(which gnunet-config)
 if [ -z $LOCATION ]
@@ -55,7 +55,7 @@ then
   echo "Failed to resolve to proper IP, got $RES_IP_REL. (relative expiration)"
   #exit 1
 fi
-if [ "$RES_IP" == "$TEST_IP" ]
+if [ "$RES_IP" = "$TEST_IP" ]
 then
   exit 0
 else