Skip to content

Commit

Permalink
use character not used in our config vars for sed.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke-holoride committed Oct 12, 2023
1 parent 02d5d0f commit 8e806cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bridge/cmd/bridge/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,35 @@ then
echo "\$ETH_NETWORK_ADDRESS is empty"
exit 1
fi
sed -i -e "s/\$ETH_NETWORK_ADDRESS/$ETH_NETWORK_ADDRESS/g" ./config/config.toml
sed -i -e "s|\$ETH_NETWORK_ADDRESS|$ETH_NETWORK_ADDRESS|g" ./config/config.toml

if [ -z "$ETH_CONTRACT_ADDRESS" ]
then
echo "\$ETH_CONTRACT_ADDRESS is empty"
exit 1
fi
sed -i -e "s/\$ETH_CONTRACT_ADDRESS/$ETH_CONTRACT_ADDRESS/g" ./config/config.toml
sed -i -e "s|\$ETH_CONTRACT_ADDRESS|$ETH_CONTRACT_ADDRESS|g" ./config/config.toml

if [ -z "$MVX_NETWORK_ADDRESS" ]
then
echo "\$MVX_NETWORK_ADDRESS is empty"
exit 1
fi
sed -i -e "s/\$MVX_NETWORK_ADDRESS/$MVX_NETWORK_ADDRESS/g" ./config/config.toml
sed -i -e "s|\$MVX_NETWORK_ADDRESS|$MVX_NETWORK_ADDRESS|g" ./config/config.toml

if [ -z "$MVX_CONTRACT_ADDRESS" ]
then
echo "\$MVX_CONTRACT_ADDRESS is empty"
exit 1
fi
sed -i -e "s/\$MVX_CONTRACT_ADDRESS/$MVX_CONTRACT_ADDRESS/g" ./config/config.toml
sed -i -e "s|\$MVX_CONTRACT_ADDRESS|$MVX_CONTRACT_ADDRESS|g" ./config/config.toml

if [ -z "$MVX_VALIDATOR_ADDRESS" ]
then
echo "\$MVX_VALIDATOR_ADDRESS is empty"
exit 1
fi
sed -i -e "s/\$MVX_VALIDATOR_ADDRESS/$MVX_VALIDATOR_ADDRESS/g" ./config/config.toml
sed -i -e "s|\$MVX_VALIDATOR_ADDRESS|$MVX_VALIDATOR_ADDRESS|g" ./config/config.toml


echo "Starting bridge..."
Expand Down

0 comments on commit 8e806cd

Please sign in to comment.