download to /tmp for azcopy and aws

This commit is contained in:
Vladimir Safonkin
2020-11-09 11:25:04 +03:00
parent ffcfad23be
commit 3a9390dcbc
2 changed files with 5 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ source ~/utils/utils.sh
AZCOPY_DOWNLOAD_URL="https://aka.ms/downloadazcopy-v10-mac"
download_with_retries $AZCOPY_DOWNLOAD_URL "." "azcopy.zip"
unzip azcopy.zip -d azcopy
download_with_retries $AZCOPY_DOWNLOAD_URL "/tmp" "azcopy.zip"
unzip /tmp/azcopy.zip -d azcopy
AZCOPY_EXTRACTED=$(echo azcopy/azcopy*)
cp "$AZCOPY_EXTRACTED/azcopy" "/usr/local/bin/azcopy"
chmod +x "/usr/local/bin/azcopy"