We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0253f21 commit 59fd426Copy full SHA for 59fd426
images/macos/provision/core/powershell.sh
@@ -4,8 +4,8 @@ source ~/utils/utils.sh
4
echo Installing PowerShell...
5
arch=$(get_arch)
6
7
-psmetadata=$(curl -fsSL "https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json")
8
-psver=$(echo $psmetadata | jq -r '.LTSReleaseTag[0]')
+download_with_retries "https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json" "/tmp" "powershell-metadata.json"
+psver=$(cat /tmp/powershell-metadata.json | jq -r '.LTSReleaseTag[0]')
9
psDownloadUrl=$(get_github_package_download_url "PowerShell/PowerShell" "contains(\"osx-$arch.pkg\")" "$psver" "$API_PAT")
10
download_with_retries $psDownloadUrl "/tmp" "powershell.pkg"
11
0 commit comments