From 99847d50a7f6187e0327d825ec21df620bed952e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 13 Jan 2024 21:41:27 +0100 Subject: improve logging --- src/auditor/test-auditor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/auditor/test-auditor.sh') diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index 9912a02af..65e77b04d 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -59,7 +59,7 @@ LIBEUFIN_SETTLE_TIME=1 # Cleanup exchange and libeufin between runs. function cleanup() { - if test ! -z "${EPID:-}" + if [ ! -z "${EPID:-}" ] then echo -n "Stopping exchange $EPID..." kill -TERM "$EPID" @@ -74,7 +74,7 @@ function cleanup() function exit_cleanup() { echo "Running exit-cleanup" - if test ! -z "${POSTGRES_PATH:-}" + if [ ! -z "${POSTGRES_PATH:-}" ] then echo "Stopping Postgres at ${POSTGRES_PATH}" "${POSTGRES_PATH}/pg_ctl" \ @@ -136,7 +136,7 @@ function pre_audit () { exit_skip "Failed to launch Nexus" fi echo " DONE" - if test "${1:-no}" = "aggregator" + if [ "${1:-no}" = "aggregator" ] then echo -n "Running exchange aggregator ..." taler-exchange-aggregator \ @@ -313,7 +313,7 @@ function post_audit () { # Pass "drain" as $2 to run a drain operation as well. function run_audit () { pre_audit "${1:-no}" - if test "${2:-no}" = "drain" + if [ "${2:-no}" = "drain" ] then echo -n "Starting exchange..." taler-exchange-httpd \ -- cgit v1.2.3