aboutsummaryrefslogtreecommitdiff
path: root/src/credential/test_credential_verify_and.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/test_credential_verify_and.sh')
-rwxr-xr-xsrc/credential/test_credential_verify_and.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/credential/test_credential_verify_and.sh b/src/credential/test_credential_verify_and.sh
index 9d5c1962e..7e8dc1392 100755
--- a/src/credential/test_credential_verify_and.sh
+++ b/src/credential/test_credential_verify_and.sh
@@ -1,4 +1,4 @@
1#!/bin/bash 1#!/usr/bin/env bash
2trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT
3 3
4LOCATION=$(which gnunet-config) 4LOCATION=$(which gnunet-config)
@@ -22,7 +22,7 @@ rm -rf `gnunet-config -c test_credential_lookup.conf -s PATHS -o GNUNET_HOME -f`
22# (5) GNUnet.developer -> Alice 22# (5) GNUnet.developer -> Alice
23 23
24 24
25which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 25which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30"
26gnunet-arm -s -c test_credential_lookup.conf 26gnunet-arm -s -c test_credential_lookup.conf
27gnunet-identity -C service -c test_credential_lookup.conf 27gnunet-identity -C service -c test_credential_lookup.conf
28gnunet-identity -C alice -c test_credential_lookup.conf 28gnunet-identity -C alice -c test_credential_lookup.conf
@@ -73,6 +73,7 @@ gnunet-arm -e -c test_credential_lookup.conf
73 73
74if [ "$RES_CRED" != "Failed." ] 74if [ "$RES_CRED" != "Failed." ]
75then 75then
76 # TODO: echo -e bashism
76 echo -e "${RES_CRED}" 77 echo -e "${RES_CRED}"
77 exit 0 78 exit 0
78else 79else