2021-03-19 15:19:40 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
2021-03-29 15:27:53 +02:00
|
|
|
if [[ $((RUN_MASK & 1)) -eq 1 ]]
|
2021-03-19 15:19:40 +01:00
|
|
|
then
|
2021-07-05 12:58:08 +02:00
|
|
|
>&2 echo -e "\033[;96mRUNNING\033[;39m RUN_MASK 1 - contract deployment"
|
2021-03-29 15:27:53 +02:00
|
|
|
./reset.sh
|
|
|
|
if [ $? -ne "0" ]; then
|
2021-07-05 12:58:08 +02:00
|
|
|
>&2 echo -e "\033[;31mFAILED\033[;39m RUN_MASK 1 - contract deployment"
|
|
|
|
exit 1;
|
2021-03-29 15:27:53 +02:00
|
|
|
fi
|
2021-07-05 12:58:08 +02:00
|
|
|
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 1 - contract deployment"
|
2021-03-19 15:19:40 +01:00
|
|
|
fi
|
|
|
|
|
2021-03-29 15:27:53 +02:00
|
|
|
if [[ $((RUN_MASK & 2)) -eq 2 ]]
|
2021-03-19 15:19:40 +01:00
|
|
|
then
|
2021-07-05 12:58:08 +02:00
|
|
|
>&2 echo -e "\033[;96mRUNNING\033[;39m RUN_MASK 2 - custodial service initialization"
|
2021-03-29 15:27:53 +02:00
|
|
|
./seed_cic_eth.sh
|
2021-07-05 12:58:08 +02:00
|
|
|
if [ $? -ne "0" ]; then
|
|
|
|
>&2 echo -e "\033[;31mFAILED\033[;39m RUN_MASK 2 - custodial service initialization"
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 2 - custodial service initialization"
|
2021-03-29 15:27:53 +02:00
|
|
|
fi
|