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,9 +4,10 @@ source ~/utils/utils.sh
echo Installing aws...
AWSCLIURL="https://awscli.amazonaws.com/AWSCLIV2.pkg"
download_with_retries $AWSCLIURL "."
download_with_retries $AWSCLIURL "/tmp"
pushd /tmp
sudo installer -pkg AWSCLIV2.pkg -target /
rm -rf AWSCLIV2.pkg
popd
echo Installing aws sam cli...
brew tap aws/tap

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"