[macOS] Temporary pin the AzCopy version (#8979)

* Update Software Report to support azcopy output

* [macOS] Temporary pin the AzCopy version

---------

Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
Alexey-Ayupov
2023-12-11 22:26:33 +01:00
committed by GitHub
parent 63f2cea173
commit 126c302e7a
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ arch=$(get_arch)
if [ "$arch" == "arm64" ]; then
brew_smart_install azcopy
else
archive_path=$(download_with_retry "https://aka.ms/downloadazcopy-v10-mac")
# Temporary pin 10.21.2 version of AzCopy until 10.22.0 is fixed
archive_path=$(download_with_retry "https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_darwin_amd64_10.21.2.zip")
unzip -qq "$archive_path" -d /tmp/azcopy
extract_path=$(echo /tmp/azcopy/azcopy*)
cp "$extract_path/azcopy" "/usr/local/bin/azcopy"

View File

@@ -348,7 +348,7 @@ function Get-Aria2Version {
}
function Get-AzcopyVersion {
$azcopyVersion = Run-Command "azcopy --version" | Take-Part -Part 2
$azcopyVersion = [string]$(Run-Command "azcopy --version") | Take-Part -Part 2
return $azcopyVersion
}