From 8e90fac7a0f29d2a5ab738e5853b81e6835cab45 Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 3 Sep 2021 00:05:43 +0200 Subject: [PATCH] Preserve configs between migration run phases --- apps/contract-migration/config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/contract-migration/config.sh b/apps/contract-migration/config.sh index faee2b47..ccea2290 100644 --- a/apps/contract-migration/config.sh +++ b/apps/contract-migration/config.sh @@ -8,10 +8,10 @@ else mkdir -p $DEV_DATA_DIR fi -if [ ! -z $DEV_CONFIG_RESET ]; then +if [ -z $DEV_CONFIG_RESET ]; then if [ -f ${DEV_DATA_DIR}/env_reset ]; then - >&2 echo "using existing config file ${DEV_DATA_DIR}/env_reset" - exit 0 + >&2 echo "importing existing configuration values from ${DEV_DATA_DIR}/env_reset" + . ${DEV_DATA_DIR}/env_reset fi fi