From 5f7119d93f6868a2e21d23b3df066fb43489b9da Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 9 Mar 2019 12:10:10 +0000 Subject: bashism --- src/credential/test_credential_verify_rest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/credential/test_credential_verify_rest.sh') 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 @@ -#!/bin/bash +#!/usr/bin/env bash trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT LOCATION=$(which gnunet-config) @@ -22,7 +22,7 @@ rm -rf `gnunet-config -c test_credential_lookup.conf -s PATHS -o GNUNET_HOME -f` # (5) GNUnet.developer -> Alice -which timeout &> /dev/null && DO_TIMEOUT="timeout 30" +which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" gnunet-arm -s -c test_credential_lookup.conf gnunet-identity -C service -c test_credential_lookup.conf gnunet-identity -C alice -c test_credential_lookup.conf @@ -79,6 +79,7 @@ gnunet-arm -e -c test_credential_lookup.conf if [ "$RES_CRED" != "Failed." ] then + # TODO: replace echo -e bashism echo -e "${RES_CRED}" exit 0 else -- cgit v1.2.3