mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-28 20:38:12 +08:00
download to /tmp for azcopy and aws
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user