Skip to content

Commit

Permalink
Fix grep
Browse files Browse the repository at this point in the history
  • Loading branch information
mb1896 committed Mar 15, 2024
1 parent 0ba6808 commit b2d00d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy_linked_token_to_subnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ cd $LINKED_TOKEN_FOLDER
for retry in {0..20}
do
check_balance_output=$(make check-balance)
balance=$(echo $check_balance_output | grep -oP '0x[\S]+')
balance=$(echo $check_balance_output | grep -oP '0x[\S]*')
if [ $balance = '0x0000000000000000000000000000000000000000000000000000000000000000' ]; then
if (( $retry < 20 )); then
echo "Balance $balance is still zero. Will wait and retry...(attempt $retry)"
Expand Down Expand Up @@ -140,7 +140,7 @@ sleep 10
for retry in {0..20}
do
check_balance_output=$(make check-balance)
balance=$(echo $check_balance_output | grep -oP '0x[\S]+')
balance=$(echo $check_balance_output | grep -oP '0x[\S]*')
if [ $balance != '0x0000000000000000000000000000000000000000000000000000000000000000' ]; then
if (( $retry < 20 )); then
echo "Balance $balance has not been reduced. Will wait and retry...(attempt $retry)"
Expand All @@ -162,7 +162,7 @@ sleep 10
for retry in {0..100}
do
check_balance_output=$(make check-replica-balance)
balance=$(echo $check_balance_output | grep -oP '0x[\S]+')
balance=$(echo $check_balance_output | grep -oP '0x[\S]*')
if [ $balance = '0x0000000000000000000000000000000000000000000000000000000000000000' ]; then
if (( $retry < 100 )); then
echo "Balance $balance has not been increased in replica contract. Will wait and retry...(attempt $retry)"
Expand Down

0 comments on commit b2d00d5

Please sign in to comment.