mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[mac OS] Set flags for curl invocations (#8008)
This commit is contained in:
committed by
GitHub
parent
67f9c37eee
commit
463cbf01cf
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user