Skip to content

Commit

Permalink
Retry snap install 3 times, sometimes the snap server 503s
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Aug 8, 2018
1 parent cca240c commit 054298d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/testnet-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ fi
netBasename=${SOLANA_NET_NAME/-*/}

# Figure installation command
SNAP_INSTALL_CMD="sudo snap install solana --$SOLANA_SNAP_CHANNEL --devmode"
SNAP_INSTALL_CMD="\
for i in {1..3}; do \
sudo snap install solana --$SOLANA_SNAP_CHANNEL --devmode && break;
sleep 1; \
done \
"
LOCAL_SNAP=$1
if [[ -n $LOCAL_SNAP ]]; then
if [[ ! -f $LOCAL_SNAP ]]; then
Expand Down

0 comments on commit 054298d

Please sign in to comment.