diff options
Diffstat (limited to 'src/credential/test_credential_verify_rest.sh')
-rwxr-xr-x | src/credential/test_credential_verify_rest.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/credential/test_credential_verify_rest.sh b/src/credential/test_credential_verify_rest.sh index 6133ea25e..99db5da8a 100755 --- a/src/credential/test_credential_verify_rest.sh +++ b/src/credential/test_credential_verify_rest.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/usr/bin/env bash |
2 | trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT |
3 | 3 | ||
4 | LOCATION=$(which gnunet-config) | 4 | LOCATION=$(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 | ||
25 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 25 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" |
26 | gnunet-arm -s -c test_credential_lookup.conf | 26 | gnunet-arm -s -c test_credential_lookup.conf |
27 | gnunet-identity -C service -c test_credential_lookup.conf | 27 | gnunet-identity -C service -c test_credential_lookup.conf |
28 | gnunet-identity -C alice -c test_credential_lookup.conf | 28 | gnunet-identity -C alice -c test_credential_lookup.conf |
@@ -79,6 +79,7 @@ gnunet-arm -e -c test_credential_lookup.conf | |||
79 | 79 | ||
80 | if [ "$RES_CRED" != "Failed." ] | 80 | if [ "$RES_CRED" != "Failed." ] |
81 | then | 81 | then |
82 | # TODO: replace echo -e bashism | ||
82 | echo -e "${RES_CRED}" | 83 | echo -e "${RES_CRED}" |
83 | exit 0 | 84 | exit 0 |
84 | else | 85 | else |