Retry snap install 3 times, sometimes the snap server 503s

This commit is contained in:
Michael Vines 2018-08-08 08:56:05 -07:00
parent cca240c279
commit 054298d957
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 6 additions and 1 deletions

View File

@ -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