summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_collect_rest.sh
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-09 12:10:10 +0000
committerng0 <ng0@n0.is>2019-03-09 12:10:10 +0000
commit5f7119d93f6868a2e21d23b3df066fb43489b9da (patch)
treeb4ed68dfb450563997afd81a2b8e615c8ff63c80 /src/credential/test_credential_collect_rest.sh
parent81f6aa39f603bb9a176bdc901566856c4dde8790 (diff)
downloadgnunet-5f7119d93f6868a2e21d23b3df066fb43489b9da.tar.gz
gnunet-5f7119d93f6868a2e21d23b3df066fb43489b9da.zip
bashism
Diffstat (limited to 'src/credential/test_credential_collect_rest.sh')
-rwxr-xr-xsrc/credential/test_credential_collect_rest.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/credential/test_credential_collect_rest.sh b/src/credential/test_credential_collect_rest.sh
index 0b31f85bc..fe59d9399 100755
--- a/src/credential/test_credential_collect_rest.sh
+++ b/src/credential/test_credential_collect_rest.sh
@@ -1,4 +1,4 @@
1#!/bin/bash 1#!/bin/sh
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
@@ -82,9 +82,10 @@ gnunet-arm -e -c test_credential_lookup.conf
82echo "Done" 82echo "Done"
83if [ "$RES_CRED" != "Failed." ] 83if [ "$RES_CRED" != "Failed." ]
84then 84then
85 echo -e "${RES_CRED}" 85 # TODO: replace echo -e bashism.
86 exit 0 86 echo -e "${RES_CRED}"
87 exit 0
87else 88else
88 echo "FAIL: Failed to verify credential $RES_CRED." 89 echo "FAIL: Failed to verify credential $RES_CRED."
89 exit 1 90 exit 1
90fi 91fi