Use if to be more explict about error handling (set -e trouble?)

This commit is contained in:
Michael Vines 2018-12-20 18:07:17 -08:00
parent dd25c5b085
commit 4807fb4c5c
1 changed files with 3 additions and 5 deletions

View File

@ -192,11 +192,9 @@ $solana_wallet --keypair "$fullnode_id_path" address
# - one token to keep the node identity public key valid.
retries=5
while true; do
$solana_wallet \
--keypair "$fullnode_id_path" \
--network "$leader_address" \
airdrop 3 \
&& break
if $solana_wallet --keypair "$fullnode_id_path" --network "$leader_address" airdrop 3; then
break
fi
# TODO: Consider moving this retry logic into `solana-wallet airdrop` itself,
# currently it does not retry on "Connection refused" errors.