1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Modify script to get the artifacts

This commit is contained in:
Enrique Ruiz 2019-09-20 12:48:17 +02:00 committed by Matthias Kretschmann
parent f30ae3e919
commit 91784c4cdf
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -9,12 +9,12 @@ printf '\n\e[33m◯ Waiting for contracts to be generated...\e[0m\n'
mkdir -p artifacts
until [ $COMMAND_STATUS -eq 0 ] || [ $RETRY_COUNT -eq 240 ]; do
until [ $COMMAND_STATUS -eq 0 ] || [ $RETRY_COUNT -eq 120 ]; do
keeper_contracts_docker_id=$(docker container ls | grep keeper-contracts | awk '{print $1}')
docker cp "${keeper_contracts_docker_id}":/keeper-contracts/artifacts/ready ./artifacts/ > /dev/null 2>&1
docker cp ${keeper_contracts_docker_id}:/keeper-contracts/artifacts/ready ./artifacts/
COMMAND_STATUS=$?
sleep 5
(( RETRY_COUNT=RETRY_COUNT+1 ))
let RETRY_COUNT=RETRY_COUNT+1
done
printf '\e[32m✔ Found new contract artifacts.\e[0m\n'