Retry failed release downloads

gsutil cp is prone to failure during initial creation of a Kubernetes
cluster. This 'until' loop will keep trying as suggested in the 'gsutil
cp' documentation.
This commit is contained in:
Ryan Fowler 2014-07-16 16:07:26 -05:00
parent 0e1636e003
commit 6bef460bdf

View File

@ -21,7 +21,7 @@
# master and run.
echo "Downloading release ($MASTER_RELEASE_TAR)"
gsutil cp $MASTER_RELEASE_TAR master-release.tgz
until gsutil cp $MASTER_RELEASE_TAR master-release.tgz; do sleep 1 ; echo "Retrying master download" ; done
echo "Unpacking release"