You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Perform a simple recursice finad-and-replace on all variables defined in setup.cov
export SETUP_CONF_PATH=babylon-setup.conf # location of the setup config
export DISTRIBUTION_PATH=./distribution # folder where the distributions YAML files are to be found
while IFS="=" read PLACEHOLDER VALUE # While look that will perform simple parsing. On each line MY_VAR=123 will be read into PLACEHOLDER=MY_VAR, VALUE=123
do
# recursively look for $PLACEHOLDER in all files in the $DISTRIBUTION_PATH and replace it with $VALUE
VALUE=$(echo "${VALUE////$'\/'}") #escape forward slashes (need for sed to work correctly)