From ca1d73ecd1456f5b0892c4e19dd33ba43f45afc8 Mon Sep 17 00:00:00 2001 From: otherview Date: Mon, 9 Jan 2023 12:21:26 +0000 Subject: [PATCH] merge pedro/fix_pccs_addr --- testnet/start-obscuro-node.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testnet/start-obscuro-node.sh b/testnet/start-obscuro-node.sh index a8023538b7..4b91b673fc 100755 --- a/testnet/start-obscuro-node.sh +++ b/testnet/start-obscuro-node.sh @@ -132,8 +132,12 @@ echo "P2PPUBLICADDRESS=${p2p_public_address}" >> "${testnet_path}/.env" echo "SEQUENCERID=${sequencer_id}" >> "${testnet_path}/.env" # only set the env var if it's defined -if [[ ! -z ${pccs_addr} ]]; then # if not not set check is awful - echo "PCCS_ADDR=${pccs_addr}" >> "${testnet_path}/.env" +# only set the env var if it's defined +if [ -z ${pccs_addr+x} ]; +then + echo "pccs_addr not set"; +else + echo "PCCS_ADDR=${pccs_addr}" >> "${testnet_path}/.env" fi if ${debug_enclave} ;