Skip to content

Commit

Permalink
merge pedro/fix_pccs_addr
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Jan 9, 2023
1 parent 359b324 commit ca1d73e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions testnet/start-obscuro-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} ;
Expand Down

0 comments on commit ca1d73e

Please sign in to comment.