Increased retry count and added delay between each

#155
This commit is contained in:
Geoff Bourne committed 2021-07-14 20:55:30 -05:00
1 parent 52d8bed770
commit f1903fb686
3 files changed
+12 -4

No files matched your search

+4 -2
View File
@@ -40,12 +40,14 @@ case ${VERSION^^} in
VERSION=1.16.20.03
;;
LATEST)
for a in data-platform data-bi-prtid; do
for i in {1..3}; do
echo "Looking up latest version..."
for a in data-platform ; do
for i in {1..5}; do
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
if [[ ${DOWNLOAD_URL} ]]; then
break 2
fi
sleep 1
done
done
if [[ ${DOWNLOAD_URL} =~ http.*/.*-(.*)\.zip ]]; then