From baef188ed0a7aec86724322e7717af5360232c3d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 23 Jul 2023 14:49:10 +0200 Subject: tolerate unset --- src/testing/taler-unified-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/taler-unified-setup.sh b/src/testing/taler-unified-setup.sh index e1365913d..09999aef2 100755 --- a/src/testing/taler-unified-setup.sh +++ b/src/testing/taler-unified-setup.sh @@ -244,7 +244,7 @@ if [ "1" = "$START_SANDBOX" ] then # LIBEUFIN_SANDBOX_DB_CONNECTION=$(taler-config -c "$CONF" -s "libeufin-sandbox" -o "DB_CONNECTION") - if [ ! -z "$PGHOST" ] + if [ ! -z "${PGHOST:+}" ] then EHOST=$(echo $PGHOST | sed -e "s/\//\\\\\//g") LIBEUFIN_SANDBOX_DB_CONNECTION=$(echo $LIBEUFIN_SANDBOX_DB_CONNECTION | sed -e "s/\/var\/run\/postgresql/$EHOST/") -- cgit v1.2.3