[mac OS] Set flags for curl invocations (#8008)

This commit is contained in:
Vasilii Polikarpov
2023-08-01 15:42:44 +02:00
committed by GitHub
parent 67f9c37eee
commit 463cbf01cf
14 changed files with 18 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ source ~/utils/utils.sh
echo Installing PowerShell...
arch=$(get_arch)
psmetadata=$(curl "https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json" -s)
psmetadata=$(curl -fsSL "https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json")
psver=$(echo $psmetadata | jq -r '.LTSReleaseTag[0]')
psDownloadUrl=$(get_github_package_download_url "PowerShell/PowerShell" "contains(\"osx-$arch.pkg\")" "$psver" "$API_PAT")
download_with_retries $psDownloadUrl "/tmp" "powershell.pkg"