change wget and curl to retry functions

This commit is contained in:
Mikhail Timofeev
2020-10-27 09:45:22 +03:00
parent 48e266a55a
commit 592fcf2f66
9 changed files with 64 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ installAzulJDK() {
local TMP_FILE=/tmp/openjdk.dmg
local TMP_MOUNT=`/usr/bin/mktemp -d /tmp/zulu.XXXX`
# Download dmg
curl "${URL}" -o "${TMP_FILE}"
download_with_retries $URL "/tmp" "openjdk.dmg"
# Attach dmg
hdiutil attach "${TMP_FILE}" -mountpoint "${TMP_MOUNT}"
# Install pkg