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

@@ -1,8 +1,10 @@
#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
AZCOPY_DOWNLOAD_URL="https://aka.ms/downloadazcopy-v10-mac"
wget -O "$HOME/azcopy.zip" "$AZCOPY_DOWNLOAD_URL"
download_with_retries $AZCOPY_DOWNLOAD_URL "." "azcopy.zip"
unzip azcopy.zip -d azcopy
AZCOPY_EXTRACTED=$(echo azcopy/azcopy*)
cp "$AZCOPY_EXTRACTED/azcopy" "/usr/local/bin/azcopy"