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:
parent
f30ae3e919
commit
91784c4cdf
@ -9,12 +9,12 @@ printf '\n\e[33m◯ Waiting for contracts to be generated...\e[0m\n'
|
|||||||
|
|
||||||
mkdir -p artifacts
|
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}')
|
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=$?
|
COMMAND_STATUS=$?
|
||||||
sleep 5
|
sleep 5
|
||||||
(( RETRY_COUNT=RETRY_COUNT+1 ))
|
let RETRY_COUNT=RETRY_COUNT+1
|
||||||
done
|
done
|
||||||
|
|
||||||
printf '\e[32m✔ Found new contract artifacts.\e[0m\n'
|
printf '\e[32m✔ Found new contract artifacts.\e[0m\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user